“Sour grapes” is an idiom that describes when someone pretends to dislike something they can’t have. The phrase comes from Aesop’s fable about a fox that tries to reach grapes on a vine but can’t. The fox then decides the grapes are sour and not worth trying for.