"Sour grapes" would mean that the candidate had said "Well, I didn't want to win anyway. It's a rotten job and I've much better things to do with my time." It thus implies that the previous object of desire is not worth having.
"A poor loser" might be one alterrnative.
Student or Learner