chase a rainbow vs fight a losing battle

chase a rainbow

verb
  • To pursue something illusory, impractical, or impossible. 

fight a losing battle

verb
  • To try to do something so difficult that it will probably end in failure. 

  • To continue to wage war when it is clear that one is not going to win. 

How often have the words chase a rainbow and fight a losing battle occurred in a corpus of books? (source: Google Ngram Viewer )