Couldn't the military separate gays into their own special unit? Women are already mostly separated from men, separate bunks, showers.
They don't do that in several other NATO countries and Israel, despite the fact that gays may serve openly; there is no evidence of any issues with unit cohesion, morale, or readiness in those countries' services.
We're talking about the US military. Co-ed units do not exist, should mixed hetero/homosexual units exist? I have no problem with the military separating behaviors, like men/women.
Why limit it to gender and sexual preference? Why not segregate the military Republican/Democrat? Introvert/extrovert? Baseball fan/football fan? Left-handed/right handed?