Federal law was enacted to deal with idiots that think this way and is actively enforced by the EEOC - Equal Employment Opportunity Commission. Sounds like upper executives need a few more Archer risk findings opened to understand this law better.
The Age Discrimination in Employment Act (ADEA) forbids age discrimination against people who are age 40 or older. It does not protect workers under the age of 40, although some states have laws that protect younger workers from age discrimination. It is not illegal for an employer or other covered entity to favor an older worker over a younger one, even if both workers are age 40 or older.
Age Discrimination & Work Situations:
The law prohibits discrimination in any aspect of employment, including hiring, firing, pay, job assignments, promotions, layoff, training, benefits, and any other term or condition of employment.
Discrimination can occur when the victim and the person who inflicted the discrimination are both over 40.
Age Discrimination & Employment Policies/Practices
An employment policy or practice that applies to everyone, regardless of age, can be illegal if it has a negative impact on applicants or employees age 40 or older and is not based on a reasonable factor other than age (RFOA).
https://www.eeoc.gov/laws/types/age.cfm
https://www.eeoc.gov/eeoc/litigation/
https://www.eeoc.gov/eeoc/history/adea50th/at50.cfm
https://www.eeoc.gov/eeoc/meetings/7-15-09/index.cfm