rigidbody should ignore certain colliders

I have two objects

  1. Ridgidbody2D and BoxCollider2D
  2. CircleCollider2D

1 should not be influenced by 2, but still recognize touches. How does it work?

Use a trigger collider and Unity - Scripting API: MonoBehaviour.OnTriggerEnter2D(Collider2D)

In addition.
You could use layers and adjust collisions between layers in Porhect settings