Gender (or gender identity) is an intrinsic thing.
Gender as it is performed and expected to be performed is an individually and socially constructed thing, a political act.
We could save ourselves a lot of trouble if people stopped conflating the two concepts.