In reality composer when we put two objects on same position the click will not work on it

I put two objects on same place and then added the click on both the objects. On click I added the "usdz animation". After that I added the one behavior. In that behavior I hide the one object. So when I click on that object the click is working in reality composer but not working in AR.