for some reason an object is not perceived as valid when I try to make it so that if the object touches another object, it disappears
If both objects are obstacles, their collision will not be detected. Otherwise, it should work. In this case, please send me a link to the game (share it to play, via private message if you wish), tell me which objects they are, and I will take a look.
That worked, and I am also amazed by the quick responses.
I am surprised because no one else but me has posted for a long time