If there are two good candidates and I pick one of them, it doesn't necessarily mean you were 'rejected', you just weren't selected. I've been 'rejected' by plenty of companies but I try not to take it too personally.
Being told, "You obviously don't have experience" by a company when it's literally untrue really grinds my gears.
It just grinds my gears when a company adds that little bit of insult at the end of it, by somehow making it your fault in the end for supposedly lying to them.
Or they're not a good fit because the recruiter who found them isn't recruiting for a team where they'd be a good fit.
So it's not just they they weren't selected, they weren't selected for that role.
That is the candidate's decision to make, not the company's.