discard vs dismiss

discard

verb
  • To dismiss from employment, confidence, or favour; to discharge. 

  • To throw away, to reject. 

  • To make a discard; to throw out a card. 

noun
  • A temporary variable used to receive a value of no importance and unable to be read later. 

  • Anything discarded. 

  • A discarded playing card in a card game. 

dismiss

verb
  • To discharge; to end the employment or service of. 

  • To get a batsman out. 

  • To give someone a red card; to send off. 

  • To reject; to refuse to accept. 

  • To order to leave. 

  • To invalidate; to treat as unworthy of serious consideration. 

  • To send or put away, to discard with disregard, contempt or disdain. (sometimes followed by as). 

  • To dispel; to rid one’s mind of. 

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