There is an opt out: You can get out when your enlistment is up. I predict a lot of people will do that, not re-enlist. Meantime, for those unfortunate people fighting a war, who are forced to jump into a foxhole with a couple of perverts... Ever heard of fragging? It’d take about two seconds to decide.
I had a roommate in ‘76 that was reputed to be an aggressive fag. I had and have no idea if that was true or not. I simply told him that if he bothered me in any way, shape or form I was gonna stomp a hole in his chest. He never caused me any problems and we got along quite well. If I said that now, I’d probably get a courts martial.