I would rather share a hospital room with a transman than a (female) transphobe. (I don't consider being GC to be trabsphobic but some women genuinely are) but that's a matter of preference, not an expression of how much I would worry about my personal safety in that context.
But the point is that "not wanting to be vulnerable/semiconscious with this person sharing my bedroom" is not the same thing as expressing hatred of that person or the group/category the person belongs to.
It is absolutely known and provable that women are more vulnerable and more likely to be assaulted in a mixed sex environment than in a single sex environment. That does not mean that every woman in a mixed sex environment gets attacked or that every male is an attacker, but it's safe to be in a single sex environment.
Sex and gender are not the same thing. A room containing a woman and a transwoman is a mixed sex environment.