To my knowledge the OT was first in universally condemning male homosexuality. If you are aware of an earlier condemnation, please cite it.
Though doing the same for lesbianism would have undermined male dominated polygamous marriage and concubinage prevalent at the time. It wasn’t until NT Romans 1:26 that lesbianism followed suit.
Does natural selection favor hetero or homosexuality?
Hetero. Why is that? Because the genetic the exchange produced by sex increases the fitness of species.
The mutual masturbation selected and worshiped by reprobate perverts isn’t sex.