sour grapes — притворное пренебрежение к чему-либо недоступному
She said the hat made me look silly, but perhaps that was
sour grapes — она сказала, что я в этой шляпке выгляжу глупо, но я думаю, она просто завидует.
If you refer to someone's attitude as
sour grapes, you mean that they say that something is worthless or undesirable because they want it themselves but cannot have it.