For a body of media that seems fixated on different avenues of oppression, the Harry Potter series is seriously lacking when it comes to actual diversity and oppression that doesn’t revolve around magical beings. Seriously, just about everything’s a metaphor for some form of oppression or some facet of a marginalized identity.
If you’re looking for allegories about human rights and racism shown through a lens of magical humans and magical species, cool. That’s what you’re getting.
If you’re actually looking for nuanced interpretations of how race, power, and privilege intersect and affect each other in a world of magic, maybe look somewhere else.
J. K. Rowling’s world isn’t going to be it.