I read an article discussing the legal aspects of the arrest and it’s a bit convoluted. Apparently you do not have to comply if a cop asks you to put out your cigarette while in your car. However the cop can order you out of the car and you have to comply. Once you’re out of the car, the cop can then order you to put out the cig and then it’s a legal request. Also you may not legally resist an illegal arrest. That is, no matter how bogus the reason for the arrest, legally you have to comply. Afterwards you can sue and file complaints and such but there are no legal grounds for resisting an arrest at the time.
Oddly enough, I believe the Supreme Court also recently ruled that cops are legally allowed to stop you for things which aren’t actually illegal, but which the cop thinks are illegal. So not much point arguing legalities with cops, as for them ignorance of the law is actually a defense where it isn’t for civilians…