Best way to create this effect

I'm trying to create this effect, where the overlapping image is cutting out a part of the underlying image. In this specific scenario you could probably get away with a border? But I'm thinking of using masking or clip path to also learn it better. I've messed around with some before/after pseudoelements but couldn't get it working, and my real question is :

Would it be best to just use a svg mask? And apply that? seems like the least hassle after you get the svg created.
image.png
Was this page helpful?