How to pick Senintel 1 images from the same footprint

I am trying to automate selecting overlapping Sentinel 1 images for interferograms and I tried to using the relative orbit number but sometimes I get tiles that are in the same path/direction but not the same location (like this picture).
image

Is there some sort of trick to selecting images that are perfectly overlapping from their file name? I know in Senitnel 2 it’s pretty easy to do.

Thanks!

For Sentinel-2 it is easy because the data is provided on a grid.
Sentinel-2 UTM Tiling Grid (ESA) (eatlas.org.au).
But for Sentinel-1 it is not possible. You can only define your area of interest and see if the product overlaps or the area is inside the product.

Maybe someone has a good idea how to do it.