I don’t think you are generally in a state of mind to symphatize with someone that just refused to sell you a perfectly legal product regardless of your age.
Well, then my advice would be to practise entering that state of mind when a person deserves it the least (because then you are likely to benefit from it the most.)
Nonsense, getting angry and salty is always the way to go.
On a more serious note, I wonder just how people end up with unpleasantness being the standard go-to behaviour when people behind the counter aren't just giving them what they want.
Surely at some point in their lives they must have noticed that being polite and pleasant is far more likely to get you what you want than acting like a dick?
Usually the guy behind the counter has no say on company policy, and going against it is very much not in their interest. They'll be even less inclined to breaking policy over someone that acts like an asshole
Yeah, I won't say it's always the case but if you're asking some low-paid worker to bend a rule for you the way to guarantee they won't is to be rude, no matter how ridiculously inflexible they seem to be being.