contrary to vs different from

contrary to

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

different from

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