I know this thread is old but i needed a similar solution. Just in case people are interested I found a fairly simple one through some trial and error:
I used z order, by moving one specific instance to the top based on a condition, then picking the bottom instance to apply the action to, you should easily be able to achieve what you need with very little effort.