egotism vs ostentation

egotism

noun
  • The result or product of being egoistic. 

  • A belief that one is superior to or more important than others. 

  • Egoism (belief that behavior should be directed towards one's self-interest). 

  • A tendency to talk excessively about oneself. 

ostentation

noun
  • Ambitious display; vain show; display intended to excite admiration or applause. 

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