Of course it was obvious social commentary, but they did it primarily through the police work and criminal activity and maintained some sort of continuity that wasn't forced.
The real issue I have is that everything it attempts to do is done universally poorly. I mean, shit, Oz had better insight into society than this show, and did a much better job of covering their social commentary. The lines aren't blurred between good and bad, it's just primarily the same stereotypical shit from every cop show or "social commentary" show, but done worse. Corrupt politicians? Check. Police leaders just worrying about stats? Check. Schools teaching to the test? Check. People in the ghetto deal drugs? Check. Kids deal drugs to support their druggie mom? Check. Politicians play political games? Check.
This show just comes across as not knowing what it's trying to do, and whatever direction it does end up randomly going ends up subpar. It tries to cover way more shit than it possibly can effectively, which is extremely obvious in S4. Now, I'm about to watch the final episode of the season, and by this point they've pretty much just abandoned the focus on all the characters / stories they've been focusing on throughout this season, or they've just been pushed to have meaningless roles while they hastily try to wrap things up. Simply put, they have way too many random plots going on for how much time they dedicate to their social agenda aspects.
Before I start it, my guess is that the Mayor / ADA stories will end up in a sort of "to be continued" format since there's obviously not enough to do anything else with them and they've been filler for this entire season -- while simultaneously being done poorly and accounting for approximately 30% of the season's run time. The inner city school angle is pretty much over, so there goes the other 35% of what they focused on throughout the previous 12 hours of their season.
It's hilarious how they completely abandon pretty much everything in the other 35% of the show constantly by treating it as filler, then just shift back to their poorly-done social commentary. Now, as I near the end of the season, their meaningless social commentary undoubtedly has been mostly wrapped up, so they're going to press on through everything else they've largely ignored as though they were the primary focus of the season. At least the first few seasons continually maintained focus, but I think it's obvious they've abandoned that starting with this season to try to subvert the show to make it a half-assed documentary for their social agenda under the guise of a police / crime drama.
From my near completion of Season 4, it doesn't surprise me that the show only lasted 5 seasons with the direction it has obviously taken.