if you have families this may be able to solve it that way, since you would be able to pick the top/bottom of the family, yes?
or without families perhaps you could create a condition with sprite1 is overlapping sprite2 and then find a way to get the behaviour you want with that filter. would something like pick top/bottom sprite1 OR pick top/bottom sprite2 work?