I am not pro-police violence, but there is a lesson here. If that ever happens to you, just go with the police. Resisting never works out well for those doing it and if the officers were in the wrong, you can always file a complaint later. Once a cop tells you that they're detaining you and they physically grab you, there's no talking your way out of it.