There are people known as trans men who have given birth. I know some trans men who hate the fact they menstruate, but that does not make them female.
Of course it is true that all women are bound in a general collective consciousness by their reproductive role in society whether they give birth or not. And some females never give birth either because they cannot, or they do not wish to.
A person’s gonads do not define them irrevocably.