It's... pretty blatant?
It really is. Here’s Jon Stewart talking about how it somehow gets a free pass.
it's so fucked up. i remember reading the books expecting there to be a turn in the story, that house elves and goblins would be freed from wizard tyranny, i expected the story to culminate in some sort of a cultural revolution. we got to the part where harry buried dobby, and griphook felt touched that harry showed such respect to a creature that most wizards looked down on so he helped them in turn - and then betrayed them at his earliest convenience and it was all done out of greed. well fuck that shit. literally nothing changed. they killed voldemort and for what? they didn't put a stop to the ideals that sustained his influence! everyone stayed just as racist and classist as they were before and i read 7 books about the necessity of changing the status quo only for the protagonists to become the status quo in the end with a myriad of social issues never addressed.
it had a really good opportunity for a nice story but it remained unaware of its own themes (unless it was purposefully racist which i wouldn't presume) and for that it fell flat and we're left with a story that could have been about racism/classism from the nonracist/nonclassist perspective of the yet uncorrupted youth but what we got was plain old racism and classism with the not-as-subtle-as-we-thought hint of homophobia and transphobia.
Despite coming from one of the worst places on the internet, I always thought this was pretty good analysis of how nothing really changes in the wizarding world because Harry is born from an author who rigidly clings to the status quo rather than the betterment of society.