bitter pill

[bitter pill] {n.} Something hard to accept; disappointment.

Jack was not invited to the party and it was a bitter pill for him.