be defeated by vs gain mastery of

be defeated by

gain mastery of

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