My position is that there are men, and there are women.
Then there are some narcissists and perverts who take advantage of the situation.
And there are unfortunately also some confused people who do deserve some sympathy.
The prison solution is pretty simple, you obviously don't put men with women. And I agree that if you put them with men they'll probably get destroyed in prison.
So just have a separate section of prison just for men who pretend they're women if you wanna be compassionate. Put them together and keep them safe from the men who would beat them up, and keep women safe from them. Pretty simple.