by a mere chance vs by coincidence

by a mere chance

by coincidence

How often have the words by a mere chance and by coincidence occurred in a corpus of books? (source: Google Ngram Viewer )