How to make certain rigidbody2d's not able to push other rigidbody2d's?

I have enemies and I don’t want the player to be able to push them. So how can I make it so that the player’s rigidbody(or collider?) can’t push the enemy’s rigidbody(or collider?)?
Thank you!

Have you tried Physics.IgnoreCollision() ?

how about different layer?