兩害相權取其輕

Idiom

 * 1) to choose the lesser of two evils