discrediting vs undermining

discrediting

noun
  • The act by which something is discredited. 

undermining

noun
  • The act or process by which something is undermined. 

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