take one's medicine

Etymology
From the idea that medicine is good for one, but often unpleasant tasting.

Verb

 * 1)  To endure an unpleasant obligation, especially a punishment.