Ageism in the workplace is against the law.
Employers cannot interview two people with the same skill set and choose the younger one purely because they are younger.
However, as long as they don't tell you that you haven't got the job due to your age you wouldn't have any proof that your age went against you.
They would find some other excuse if you questioned why you hadn't got the job i.e the other person was more experienced or something like that.
You can even find yourself facing disciplinary action these days if you make ageist jokes in the workplace......calling a colleague Grandad or giving someone a rainmate and denture tablets as a 'joke' birthday present.
__________________
Old aunts used to come up to me at weddings, poking me in the ribs, cackling and telling me
'You'll be next.' They stopped when I started doing the same to them at funerals.