proverb

Between two evils it is not worth choosing.

evil

suggests that

Between two undesirable options, if you can, avoid both.

in contrast to

choose the lesser of two evils