That's the way the cookie crumbles
Meaning: said when something slightly unlucky has happened that could not have been prevented and so must be accepted
Example: I can't believe they chose Sam for the job and not me. Ah well, that's the way the cookie crumbles.
Example: I can't believe they chose Sam for the job and not me. Ah well, that's the way the cookie crumbles.