How to make it so when an enemy gets hit by 2 different collision boxes it only choses one?

Thanks for the suggestion, I tried it a few times but couldn’t get it to properly work consistently but I’m pretty sure it works fine for now.