From your link:
> The law forbids discrimination when it comes to any aspect of employment, including hiring, firing, pay, job assignments, promotions, layoff, training, fringe benefits, and any other term or condition of employment.
This makes it sound like affirmative action is illegal. But it is currently allowed and many companies brag about doing it.
What Twilio is doing is basically the same. It's like affirmative action for layoffs.
I agree that GP was wrong to say that discrimination is mandated, which it is not.