As a practical matter, yes, you do. The vast majority of police officers are trained for and looking for voluntary compliance. This means getting the person to understand the issue or citation and then move along. Actually hauling you to jail is a pain for the officer as well and in most cases they don't want that any more than you do. Cool, you got a video on YouTube showing how witty you are. For every one of those there are dozens of people who get shot and killed because they couldn't just follow directions. There is a reason police officers have the authorization to use lethal force if they feel threatened. Why? Because it's a job where feeling threatened often = being threatened.
Regardless of race, situation, city or time of day, the best way to avoid getting shot or taZed is to follow directions and be respectful. You don't want to? You don't "Have" to because you "know your rights?" That's fine too. Just remember that being right isn't worth much when you're dead.
It occurs to me that maybe people are talking past each other in this thread.
Yes, of course you should comply with the officer even if he's out of line, for your own safety and the safety of others. However there's a huge difference between
us saying it's the wisest course of action and
a police officer saying it. If we say it that's just friendly advice from people in similar situations. If a cop says it, that's the aggressor blaming the victim. Two totally different things.
Huge difference between debating the best thing to do in a given situation and debating whether a cop should be publishing an editorial in the Washington Post advising citizens to comply with illegal searches otherwise they're gonna get tazed or cuffed or worse.