at odds with vs contrary to

at odds with

contrary to

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

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