I get where some people are coming from with this. I saw it one twitter quite a lot in fandom communities, you've have people retweeting BLM content and condemning police brutality and generally getting very angry about the systematic failures ect and then in the next breath "hey wouldn't it be sexy if character X was a cop and character Y was arrested and then...sexy times!" you get the idea. Mixed messages at best.
I don't think people were really saying get rid of all cop characters and all cop characters are evil. I don't think people are looking at things like SVU and saying they're evil, especially given how hard that show in particular tries to be careful and not shy away from realities, but I do think there is an element of let's be careful on how we're doing this. We're all aware of, particularly kids shows, were police are idolised and can do no wrong because they're The Law. And there was, it's mostly faded now, a period were rouge cops who beat up suspects and disobey orders were cool and trendy because they're so badass and the system that wants to protect people and do it by the books just holds them back, which came and went in cycles as we looked at the "old fashioned" police work as brutal and now we're all CSI and then it sorta came back again because we want more action and beating up bad guys is cool and torture always works.
But I think that applies to anything. I made a thread a while back on why do people say Snape is unrealistic and "you can ask any teacher and they'd be appalled and call it unprofessional and abusive" and yet almost everyone has at least one story where teachers have been like that and other teachers are complicit in that by ignoring kids when they do complain. Does that mean, as someone said above, teachers should only be portrayed as Snapes or shouldn't be portrayed at all?
Alternatively, skip police and just move onto a hard boiled private detective/detective agency. Same role in plot but less political baggage and in many cases less chances for some nerd to come along and tell you you've got procedure wrong actually.