The idiom "a bitter pill to swallow" means:
ASomething that is very unpleasant but which must be unexpected.
BA pill that is so bitter that it cannot be swallowed.
CA pill that is so bitter that it cannot be beneficial.
DA pill that should not be avoid as it is bitter.