CIS (as born) women may also have (traditional) male-like traits. If you separate people by traits in prison, then why separate based on trans-ness alone? For example, large women are more likely to rape small women in prison simply because they can. If you separate based on such risks, then separate large women from small women also; why focus on just trans?
Many prisons already separate by ethnic group simply to keep the peace. Yes, it's segregation, but the alternative is more prison riots.
Thus, if separation happens for practical reasons, then don't limit the separation practices to one group; otherwise, you will be accused of discrimination, perhaps justifiably. Use statistics, not stereotypes, to find the split points.
Or get better security so mixing doesn't result in problems. Lowest-bidder security has down-sides.