First create a "Family" of "Inventories". Add all inventories in it. Then You need to have these two conditions:
Inventories.On Click
Inventories.Pick top instance
Then Inventories.Destroy.
It means that it will check which Sprite (among all inventories) is on TOP and select only the top most inventory only.