deter vs egg on

deter

verb
  • To persuade someone not to do something; to discourage. 

  • To prevent something from happening. 

  • To distract someone from something. 

egg on

verb
  • To encourage or coax a person to do something, especially something foolhardy or reckless. 

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