deprecate vs flatter oneself

deprecate

verb
  • To declare something obsolescent; to recommend against a function, technique, command, etc. that still works but has been replaced. 

  • To belittle or express disapproval of. 

flatter oneself

verb
  • To have the false but pleasant belief that something is true. 

How often have the words deprecate and flatter oneself occurred in a corpus of books? (source: Google Ngram Viewer )