If gays are a ostracized segment of the over all Federation society it's unlikely we would be seeing them in Starfleet, certainly not openly. That last being a variation of the "they're there, we just don't see them."

This idea seems thoroughly incompatible with the idea of the Federation as presented to us.