a necessary evil - definition and synonyms

phrase
  1. something that you do not like but that cannot be avoided
See also main entry: necessary