gain mastery of vs get the better of

gain mastery of

get the better of

verb
  • To overwhelm or overcome 

  • To gain an advantage over. 

  • To trick or con. 

How often have the words gain mastery of and get the better of occurred in a corpus of books? (source: Google Ngram Viewer )