How do I check of if the object that is being collided with is an instance of itself?

I have a game object that is being instanced. I want it so that if the object hits an instance of itself it will die. When I added a debug element to see what the object was colliding with it it didn’t show it hitting any instances of itself. Is there any way to get the object to know if it’s colliding with an instance of itself or any other ways to achieve the same goal?

The most common way would be to give your objects a tag, then use CompareTag on the collided object to see if it has the same tag.