SNP MP Joanna Cherry (Edinburgh South West) made the comment as Parliament debated a Bill to extend maternity rights to ministers and shadow ministers.
Concerns were raised in the Commons over why the Bill refers to a “person” rather than a “woman” being able to take maternity leave.
She said: “Many politicians are now so in thrall to those who wish to erase women for the purposes of advancing gender identity theory, that they call those of us who advocate for women’s sex-based rights transphobic, even when we have never done or said anything against equal rights for trans people in our lives.
“It is possible and right to support both trans rights and women’s rights, neither should be sacrificed for the sake of the other.”
Ms Cherry continued: “We can have an inclusive society for everyone without doing that.
“Sex is a protected characteristic for a very good reason.
“Discrimination against women is rooted in their biology, that is our lived experience.
“We must find a way to be inclusive without erasing women’s biology and women’s lived experience from the statute book.