Apologize but not profusely. Then, shut up. Acknowledge the officer's authority, show some respect, and do as your told. Do it whether they deserve it or not. It's about making it home safely, not about being right.
If you want to be an activist or some kind of martyr for all those abused by cops then do so. Afterwards file a lawsuit for unlawful detainment, excessive force or whatever.