Serious question: Do you want to go to Africa, where there are a lot more people who look like you? Or do you want to stay in the States, where there are (unfortunately) a number of people who are overtly racist, and a larger number who are more unconsciously assuming that it's a white person's world? I can't speak for you, but I suspect your answer is that there's enough good in the States that it's worth staying, problems and all.
Tech is like that. There are jerks, and there are racists, and there are abusive personalities. There are real, definite problems. It's still closer to a meritocracy than almost anywhere else. It's good enough that (to me) it's worth going into, problems and all. (Any individual situation may become toxic enough that you need to leave. But overall, I don't think it's bad enough to avoid, especially if that's where you would like to be.)