Years ago I got destroyed by a friend who was VP of People Ops (HR) at Google. I was giving him grief for not hiring more Black CS PhDs.
He said fair but... in that year, there was a grand total of 4 Black CS PhDs to graduate in the entire US. Four. And Google interviewed all of them. 2 passed. 2 did not pass. 1 declined the offer. 1 accepted. One.
By the time you are done with your Masters degree, many Black students are over $100K in student loan debt. The PhD is not worth it.