come out on top vs gain a victory

come out on top

gain a victory

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