swallow the pill vs take the rap

swallow the pill

take the rap

verb
  • To be blamed or punished for something, especially for the wrongful actions of another; to willingly allow oneself to be so blamed or punished. 

How often have the words swallow the pill and take the rap occurred in a corpus of books? (source: Google Ngram Viewer )