Public and employer opinion often defeat society’s best interests with a prejudice against middle-aged women.