gain advantage vs take the cake

gain advantage

take the cake

verb
  • To be especially good or outstanding. 

  • To be particularly bad, objectionable, or egregious. 

How often have the words gain advantage and take the cake occurred in a corpus of books? (source: Google Ngram Viewer )