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