I often see people posting about the problems Wizarding Society would have, and usually I agree with the OP, but I feel like in many cases, the OP is condemning Rowling for writing the system this way (ex: house elfs, treatment of werewolves and other minorities, flaws in the Sorting system, Azkaban, and so on…)
In most cases, Rowling wrote these incredible flaws into the series intentionally. She is fully aware that the system is flawed, that’s the point of the books! A writer doesn’t have to explicitly state “___ is bad, ___ is good”, and I think that Rowling trusts her readers to be discerning enough to not be coddled and handed her opinions so blatantly.