the lesser of two evils

US /ðə ˈlesər əv tuː ˈiːvəlz/
UK /ðə ˈlesər əv tuː ˈiːvəlz/
"the lesser of two evils" picture
1.

the less unpleasant of two unpleasant choices

:
Choosing to work overtime was the lesser of two evils compared to missing the deadline.
Sometimes you have to choose the lesser of two evils to move forward.