discomfit vs pull the rug (out) from under

discomfit

verb
  • To embarrass (someone) greatly; to confuse; to perplex; to disconcert. 

  • To defeat the plans or hopes of; to frustrate; disconcert. 

pull the rug (out) from under

How often have the words discomfit and pull the rug (out) from under occurred in a corpus of books? (source: Google Ngram Viewer )