z dwojga złego

Etymology
lit. 'of two evils'.

Adverb

 * 1)  given a choice of two equally unfavorable alternatives