Ignore sub-colliders for center of mass in Rigidbody2d?

I have a main object with Rigidbody2D with a Collider. I have a child object that also has a 2d collider. Now suppose I want to rotate the whole thing around only the center of mass of parent collider while ignoring the sub collider. Is this possible?

I cannot use transform rotation as it doesn’t handle physics collisions etc.

Try manually setting rigidbody2D.centerOfMass to the center of mass of the parent’s collider.