A Google search for "American inventors": https://i.imgur.com/qw5kfQp.png A Google search for "American women scientists": https://i.imgur.com/o6mxG56.png Can the media stop doing this thing where they p-hack reality for proof of racist/sexist conspiracies?
You are missing the point: there is no reason why an innocent query such as 'black girls' should bring up a bunch of porn. And Google seems to agree with this because they have since tweaked things so that that no longer happens.
Would you have ever tried to search for "black girls" if you hadn't looked at this article? On the other hand, someone who prefers black girls in a sexual way would actually search for them many times. I can imagine someone in advertising searching for random pictures of black girls, but that's a niche case far outnumbered by people searching with sexual intent.
It would be reasonable to assume that any fair, objective algorithm in Google's (or anyone else's) possession that actually optimizes for expected user intent (assuming that they don't have enough privacy-violating information to assume that the user belongs to a smaller and thus less likely minority of black girls) would still bring up a bunch of porn when searching for "black girls", since most people querying for that (except when the searcher has read this article in the last 5 minutes) actually do want to find porn; but they have configured an override purely for PR reasons.
The objective algorithm would show reality as it is, but the current override masks it and tries to show an imagined vision of "reality-as-it-should-be". And that's why the problem is not solvable algorithmically - any algorithm learning from real data and actual user behavior would show the ugly, "undesirable" reality in all kinds of edge cases, and it can only be solved in a non-scalable manner by involving some manual political correctness / good taste / etc censorship.