I don't see how you could be detained or have your car towed for refusing a search or any requests beyond your name, driver's license, and insurance. Maybe the officer could fabricate a traffic charge, which you could contest. (I'll agree you're likely screwed there - when it comes to traffic infractions you're guilty until proven innocent.) The officer might decide he smells something and force a search which makes you late for an appointment. Unfortunate for sure, and spiteful on the officer's part. But I don't think this reaches the level of martyrdom, and it'd be worth the shot of pride I get from defending my rights (though I understand not everyone would feel that way).
Am I missing something? What else could a cop do that doesn't require documented evidence of wrongdoing? I suppose Chicago-level corruption could wreck your life, and if that's the environment you're in then it's probably best to keep your head down. And take part in local government, or consider moving.