If two employees are otherwise equally performing, the company has to lay off one of them....but one would have significantly greater difficulty finding re-employment, that's something they want to consider in the decision of which employee is laid off.
It also probably means they acknowledge that there are extensively proven biases against people of color throughout society, and tried to assure that people were not more likely to be laid off because they were a minority.
Just look at the majority of comments here shouting about how this is discriminatory realize how many people in the tech sector look at a black woman interviewing for a programming job and consciously or unconsciously assume she's gotten as far as she has based off diversity quotas or "woke hiring managers" etc...and thus question her credentials more, scrutinize her background more closely, are pickier about her answers to questions and her solutions to coding problems.
Edit: "people in tech think a black woman interviewing with them is incompetent because of diversity hire initiatives" != "diversity hire initiatives result in incompetent employees" just like all the kids believing in Santa don't make Santa real. Don't use my words to justify your "reverse discrimination" narratives. Outgroup candidats start from "less likely to get hired"; diversity initiatives help push them toward "fair chance in the hiring process."
Edit2: https://news.ycombinator.com/item?id=32857237