discard vs dispose of

discard

verb
  • To throw away, to reject. 

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

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

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. 

dispose of

verb
  • To get rid of. 

  • To transfer to another's control. 

  • To arrange in an orderly way. 

  • To deal with conclusively with a threat or a difficult situation. 

  • To have available, or at one's disposal. 

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