Immediately before they go to Sodom, God’s spies pass Abraham’s tent which he keeps all the flaps up on so he can sit in the shade while scouring the 360 degree horizon for weary travelers. When he sees them he runs out, drags them back to his drafty home, brushes the sand off some food he had out when a sandstorm hit his unprotected tent, and is generally a lovely host.
Shift to Sodom and again there is a good host who meets the strangers in the town square and takes them in. When a mob of locals shows up wanting to rape the outsiders and put them in offshore processing facilities, Lot protects his guests to the extent that he is even prepared to offer up the virginity of his two daughters. By the cultural understanding of the intended audience, this would actually be a lot worse than a gang rape. The girls would consent because it is what their father told them to do, but it would destroy any prospects of respectable marriage and long term security after Lot’s death. Basically, Lot would rather end his own family line than allow harm to come to his visitors.
A lot of Christians think that the story of Sodom is about God punishing people for bumming. I’d say those people have an unhealthy anal fixation. The story is about hospitality. The fate of the daughters is meant to sound horrific. It is there as an exemplar of how far a good host will go for his guests.
This story is about how a town or country treats travelers who arrive in their lands unannounced and uninvited. Do they invite them in and share what they have or do they say “We will decide who comes to this country and the circumstances in which they come” and imprison them if they don’t arrive in the correct manner?
There is a moral in this story, but it isn’t “God hate teh gayz”.