as it happens vs to all intents and purposes

as it happens

adv
  • By coincidence, incidentally 

to all intents and purposes

prep
  • For every functional purpose; in every practical sense; in every important respect; practically speaking. 

How often have the words as it happens and to all intents and purposes occurred in a corpus of books? (source: Google Ngram Viewer )