come out on top vs gain the palm

come out on top

gain the palm

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