Getting sprites to stop going through one another?

I’m trying to get the enemies in my 2D game to stop going through each other. Their “Is Trigger” is checked in order for them to harm the player. I’ve tried unchecking the box, which does cause the enemies to run into each other and not through each other, but it also does the same to the player and prevents the player’s script for taking damage to work. Is there a way to make the enemies not pass through each other yet still be “Is Trigger”, maybe in the C# script on the enemy? Thanks.

There’s a sudden obsession with everyone using Triggers as Physics Colliders. This is nonsense practice. Triggers are area-switches nothing more.

Marking isTrigger takes away the physics barrier of the collider. This is why it can be used as an area trigger. For collisions, remove isTrigger and use OnCollision routines instead of OnTrigger.

Its all in the manual.

Could everyone just stop trying to use Triggers for Physics Collisions please?