Rarely. A quick search indicates that only 3% of older employees file complaints, and, out of that, less than 1% result in lawsuits.
And that is pertaining to people who are already employed somewhere. What we are talking about here is finding a job. In that case the situation is likely far worse and also likely unknowable (in terms of stats).
This is why I say it feels like society discards you as useless after a certain fuzzy point in time.
This has to be a cultural change over time. I say this because, as a young engineer, I wanted to work with older, more experienced, engineers. In fact, I seriously benefitted from many mentors who were ten to twenty years older than me --lessons that have stayed with me to this day.
Not so today. I have been at companies where you might as well be at a college campus. I'll name one: SpaceX. I don't know the stats, but I remember going through there and thinking that the ratio of 20-somethings to older engineers has to be in a range between 50:1 and 100:1. The only way that happens is if you actively reject older candidates. I cannot dispute their success rate and what they have accomplished. I am just using this as a real example of just how bad it can be out there for older technologists.
Note that I am not proposing forced diversity of any kind. I think that is wrong. However, work and opportunities should be available based on experience, merit and capabilities and not at the exclusion of older candidates because they are not frat boys.
Once again, I will point at least one finger squarely at YC. I think they blatantly practice age discrimination. There is no fucking way older, experienced and capable engineers and scientists cannot innovate and launch successful startups. There's so much talent and potential out there being discarded. And, of course, there is no such thing as filing a lawsuit against an investor for age discrimination.
On my end, once I understood this reality I chose to exit the race and run my own business. Here I get to use my skills and experience to plot my own future, with the help of those who join me. And I most definitely appreciate the value of experience. There's nothing better than working with people who are better than you are and bring enough insight and experience to the table to help you steer clear of a long list of things you should not do.