Sorry, I stepped.
Does not work. I believe that the problem is in the wrong organization. You are checking the wrong objects. You point to objects in the scene while creating other objects. And it turns out that the objects in the scene never touch.
It is necessary to bind a script with a contact check to an object.
Now I’m throwing an example
Here’s an example.
The scripts for deletion are bound to objects. The cube is removed on the “On volume trigger” event, the sphere on the “On contact” event. collision_test_attach_script.blend (822.1 KB)
P.S. I wrote a lot of unnecessary things, sorry. It was necessary to take a closer look at the issue, the language barrier.
Then you need to check not 2 specific objects, but check what your object collided with. Use the “Get contacts” node on the created object, so you get an array of objects that your object will collide with. Now you need to check specifically
Options for checking object collisions (in my opinion):
Add a property with objects and check it;
When creating objects, add a parent to them (or to a collection) and check it already.