come out ahead vs gain the palm

come out ahead

gain the palm

How often have the words come out ahead and gain the palm occurred in a corpus of books? (source: Google Ngram Viewer )