nip in the bud vs prevent

nip in the bud

verb
  • To stop (something) at an early stage. 

  • To remove a bud [from a plant] to prevent flower and fruit from forming. 

prevent

verb
  • To stop (an outcome); to keep from (doing something). 

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