contrary to vs in opposition to

contrary to

prep
  • despite; in opposition to (an assumption, etc.); differently from 

in opposition to

How often have the words contrary to and in opposition to occurred in a corpus of books? (source: Google Ngram Viewer )