the less unpleasant of two unpleasant choices
Oxford100% of films
I had a terrible choice to make. I chose the lesser of two evils.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition