get one's comeuppance vs take one's medicine

get one's comeuppance

take one's medicine

verb
  • To endure an unpleasant obligation, especially a punishment. 

  • Used other than figuratively or idiomatically: see take, medicine. 

How often have the words get one's comeuppance and take one's medicine occurred in a corpus of books? (source: Google Ngram Viewer )