Hot take ... ageism toward younger people should be 1,000 times more acceptable than ageism toward older people. The latter is completely tasteless and void of class.
It depends on the kind of ageism we're talking about.
Discriminating against politicians because they're too old? If they're mentally sharp, there is no legitimate reason to hold their age against them, and to attack someone on it like Castro did against Biden is classless. The same thing would apply to businesses hiring for most jobs, as long as the person is physically and mentally capable of performing their duties.
For other things, ageism against older people is perfectly justified. Countries discriminate based on age for immigrants, because it's in their national interest to do so. Youth-oriented programs and groups should not be obligated to open up membership to people of any age. There is nothing wrong with a company having a mandatory retirement age.