In life in most situation while making choices we have to choose lesser adharma. Because no person is 100 percent saint , everyone is somewhat bad , somewhat good. If we keep finding fault in people, we will be left alone. So, ultimately we have to take side of the one who less evil (adharmi) .
Another example can be while going to vote in election we have to choose the political party which is lesser evil. If we will start finding fault , all parties will be somewhat bad and if don't vote thinking all parties are evil ,then definitely bad people will capture the government.
Even in Mahabharat war , Pandavs were also not 100 percent good . Yudhistira took part in gambling and betted his wife and didn't save her despite being capable. And the four brothers also didn't do anything to save Draupdi. Yudhistira in his lust for gambling, didn't care about his responsibility for people of his kingdom.
But despite all this , Ultimately Krishna took the side of Pandavs.
So, my question is - Has Krishna in Mahabharata anywhere mentioned about such a thing - i.e.choosing lesser evil ?
If not Krishna , then Has Vyas mentioned about such a thing or any other godly figure like -Shiva ?