Homosexuality was only one example of the wickedness of the cities. God set His actions on the cities because the outcry of their wickedness was great-it wasn’t because of raping angels or others which happened AFTER God had decided to destroy the cities. Had God found ten righteous people he would not have destroyed Sodom and Gomorrah.
Homosexuality was only a symptom of a larger problem of wickedness and evil, something we should give pause to.
It’s horrific to read the account that ALL of the men of the city, both young and old, surrounded Lot’s house. The depravity was thorough and entrenched indeed.