Premise is demonstrably false. Instead of thinking about a “homosexual” genetic defect, apply the same logic to other “genetic defects”.
Ask yourself this: “Are there any genetic defects which typically prevent reproduction because they are fatal?”
The answer is “Yes,” and many can be named.
So why are these genes still persistant?
How is then that, in every instance of research done to date, the correlation of same-sex attraction among identical twins never exceeds 11 percent?
If homosexuality were a genetic trait, then both individuals in a set of identical twins would possess the inclination to the same degree and without exception - since they share the same DNA. Yet that is hardly the case, even in the most biased research.