I agree. Lot was righteous. Righteous men sin and do wrong things
No one would contest that righteous people can sometimes do sinful things (cf. King David) but the question here is the Sodom incident and the offering of Lot's virgin daughters. I already remarked that this incident cannot be judged by modern western standards but by oriental practice were the code of hospitality is extremely important. The hospitality code is a traditional part of Semitic cultures. This rule was so strict that no one might harm even an enemy who had been offered shelter for the night. So doing what was right, following God's law as he understood it, Lot refused to expose his guests to the abuse of the men of Sodom. To do so would have violated the law of sacred hospitality. The importance of the hospitality code is highlighted by the fact that in the previous chapter Abraham offers hospitality to the "strangers" that would on to visit Lot at Sodom (Do not forget to entertain strangers, for by so doing
some have unwittingly entertained angels Heb.13:2). The whole episode in chapter 19 is framed in an elegant series of parallels and antitheses to Abraham's hospitality scene at the beginning of chapter 18. Judges 19 tells another story that is an obvious parallel to the story of Sodom. A Levite who was travelling with his servant and concubine needed shelter for the night. He sat in the town square at Gibeah. No one offered him hospitality except a foreigner who was living in that town. When they were all inside, the men of the town assaulted the house and demanded to have sex with the Levite. Just as Lot did, the host protested, "No, my brothers, do not act so wickedly. Since this man is my guest, do not do this vile thing." The host offered his virgin daughter to the townsmen, but they did not want her. Then the Levite pushed out his concubine, and the townsmen raped her all through the night. In the morning, she lay dead on the doorstep of the house. In punishment, all the tribes of Israel collected an army and destroyed the town of Gibeah. Scholarly opinions differ over the choice that Lot made. As Plaut notes, "Lot's offer of his daughters to protect his guests may seem fantastically disproportionate. The implication in the text, however, is that Lot is a model host who will go to extreme lengths to honour the hospitality code." (The Torah: A modern Commentary
, Genesis 19:8 n.) Alter disagrees, seeing the offer as "rash" and justly punished by the demeaning episode of incest that follows Lot's expulsion from Sodom (Five Books of Moses
, p.92). However, this incident need not be understood as a commentary on Lot's behaviour but rather as reinforcing the decision that Lot made – his daughters were already corrupt and rightly belonged in Sodom.
Lot's concern was for his guests, not for his family. Perhaps Lot believed that God would protect his daughters as Sarah had been protected when Abraham, in order to preserve his life, lied about his marital status. Sarah was not touched in the harem of Pharaoh/Abimelech (God sent plagues on Pharaoh). Maybe Lot believed that because his daughters were betrothed to citizens of Sodom, who were also in the mob, that they would be treated circumspectly. Maybe, he thought that the offer of his daughters would cause division in the mob, with the families of the betrothed siding with Lot and his daughters.
In any case the mob was not pacified by the offer – they wanted the guests. Neither Lot nor his daughters would do. They could have forced Lot or his daughters at any time because they lived in the city. The abuse of Lot's guests would be the ultimate humiliation for Lot who was resented because he was a man with morals (which is why he had been waiting to intercept any visitors to the city to offer hospitality – this was obviously Lot's normal practice). It was only when he refused to hand over the guests that they threatened Lot himself: "This one came in to stay here,
and he keeps acting as a judge; now we will deal worse with you than with them." (Gen.19:9). The judgement of Scripture is that Lot acted righteously and I am inclined to agree with that.