as luck would have it vs by a mere chance

as luck would have it

prep
  • by good fortune; fortunately or luckily. 

by a mere chance

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