It's not an impossible standard to expect someone to not abuse their power in a way that he sends someone to die so he can have his wife, or expecting someone to care enough about their daughters (or sons) to not offer them up for a gang rape. No one is perfect, but those deeds are utterly despicable. David could have starved himself to death over guilt and stress, but it wouldn't have done the victim any good. Lot made an offering that no reasonable or good parent would even think of. Being "men of god" should not be sufficient to excuse such abhorrent actions and proclaim them "righteous."
Shadow, I think you are missing some vital points in this discussion. If Lot had done wrong in God's eyes, he would have said so, not had him written up as a righteous man when he was really wicked.
Peter says that Lot was "righteous"...Why would Peter lie about that? The destruction of Sodom and Gomorrah was pictorial of what was to come at the time of the end. We again have much sexual immorality tolerated in today's world. SSM is generally accepted even among "Christians" and homosexuality is celebrated as a normal alternative lifestyle. This is not what the Bible teaches, nor is it the standard set by the Creator.
Peter wrote in 2 Pet 2:6-10....
"And by reducing the cities of Sodʹom and Go·morʹrah to ashes, he condemned them, setting a pattern for ungodly people of things to come. 7 And he rescued righteous Lot, who was greatly distressed by the brazen conduct of the lawless people— 8 for day after day that righteous man was tormenting his righteous soul over the lawless deeds that he saw and heard while dwelling among them. 9 So, then, Jehovah knows how to rescue people of godly devotion out of trial, but to reserve unrighteous people to be destroyed on the day of judgment, 10 especially those who seek to defile the flesh of others and who despise authority."
Lot did not condone the conduct of the people around him and God sent angels to rescue him before he wiped the city off the map....would he have done that for an unrighteous man?
Lot was fully aware of the sexual deviants of the city and what they would have done to these strangers in town, (unaware at the time that they were angels) had they not been invited to stay under his roof and his under his protection....the men of the city would have raped them as the account testifies. Offering his daughters was merely a stalling tactic because he knew that these deviates were not interested in women....they wanted to have sex with the men.
In David's case, his sins were grave, but he was Israel's king. God dealt with David's sin personally and because he knew David's heart, he did not put him to death but gave him opportunity to repent. By sending his prophet Nathan to David and telling David the story of a man who had one lamb that he cherished, but a rich man stole that lamb and served it to his guest....David was incensed! He said that man should die! Nathan said..."you are the man". Cut to the heart, David fell to his knees and repented. He was forgiven, but he would suffer the consequences of his sin for the rest of his life. True to God's declaration, David had major troubles in his household from then on.
"Righteous" in God's eyes is obviously different in yours. Humans judge by what appears to the eyes, but God judges the heart. He sees the good in us, not just the sin.
The 130th Psalm begins with the words...."
From the depths I call to you, O Jehovah.
2 O Jehovah, hear my voice. May your ears pay attention to my pleas for help.
3 If errors were what you watch, O Jah, Then who, O Jehovah, could stand?
4 For with you there is true forgiveness, So that you may be held in awe."