Need workaround on 2d collision detection

Hello Experts,

I have two GameObjects, both with 2d colliders and rigid body (This is required for my game). Further, I can’t enable “is trigger” in both of them. The body type is set to “Dynamic” for both. I have some code to run on collision of these two GameObjects. I am fine with any of the functions i.e. “OnTriggerEnter2D”, “OnTriggerStay2D” or “OnTriggerExit2D”. Or even any other function/ method, or workaround. Only objective is to destroy one of the GameObject. Can you please help me with your expert opinions. Thanks in advance.

Couldn’t you just say Destroy(other.gameObject) in an OnTriggerEnter2D method?