proverb

Between two evils it is not worth choosing.

evil

suggests that

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

Related

in contrast to

Also

choose the lesser of two evils