The core text of Harry potter itself has many ableist (Durdsley), racist (House elves enjoying slavery) , antisemitic (goblins) and transphobic (Rita Skeeter) themes even if it surface level against racism.
That’s the first time I hear the treatment of Rita Skeeter is transphobic. James, Sirius and McGonagall are also able to shapeshift, and they are positive characters in the books.
For the house elves, the whole SPEW plot is designed to both make Ron (and the whole Wizard word as a whole) look stupid and bigoted, and Hermione a bit too self-righteous, as teenagers can be.
Relevant reference: https://scifi.stackexchange.com/questions/122283/why-did-rowling-seemingly-make-light-of-the-house-elf-situation
I’ve seen several times that the fact that the society isn’t changed by the end of the last book as a critic, but do all work of fictions have to uphold their societies? Game of Thrones definitely isn’t becoming a democracy during the books, and Brigderton is as classist as it can be.
Interesting, what would be the alternative? Technology, culture, religion, military? Taking those options out of Civ