Homosexuals do not have viable options that generally work well. On the other hand, people who eat greasy foods, smoke cigarettes, and are obese, frequently have viable options that generally work well. Thus, if a God exists, and opposes homosexuality, physical health probably does not have anything to do with his objections. And of course, his objections would only be his own arbitrary personal opinions.
Even if a God inspired the Bible, there is not any credible evidence that he preserved all of the originals free of errors except for copyist and scribal errors. If a God inspired the Bible, he might not have inspired Bible writers to write about homosexuality.
If a God opposes homosexuality in humans, why did he create homosexuality in at least 1500 species of animals and birds? Some Christians argue that animals and birds do not experience homosexuality the way that humans do, but why not? Humans, animals, and birds, whether homosexual or heterosexual, all enjoy having sex, and follow urges that they experience at puberty.