I'm willing to wager this is a way to try to look good for keeping the employees you pay less to do the same job. If employee pay is 'confidential' at Twilio I would be willing to wager a very large sum indeed.
Why do I think this is underhanded? Because you can do this and also not strut around and flaunt it. If you believe it is morally preferable to lay a white person off rather than another person to counter injustice, you don't help anyone involved by mentioning it. It foments anger and resentment among the laid off employees who are already having one of the worst days of their life, and who gains from broadcasting it? Just Twilio's management.