Is Job perfect or not?
The problem is, I don't use the Bible as an endorsement of Bible Character's "righteousness".
The Bible- even the New Testament- praises Lot as a righteous man.
This would be the same Lot who offered his virgin daughters up for gang rape to an angry mob, and then had drunken sex with them himself.
Similarly, Jephthah is praised in teh New Testament as someone modern people were Unworthy compared to.
This would be the same Jephthah who butchered and burned his daughter because he uttered a foolish oath to God.
BY comparison, all poor Job does is put up with the abuse that God inflicts on him, and qeustions why he is made to suffer, and God shows up and berates him for not being God.
I don't think you should criticize a man in desperation.
Lot is righteous because he borrowed God's righteousness by believing in God and not from his own actions.