If you consent to the search, the fact that the search was later determined to be completely illegal will be irrelevant. The consent makes the search factually reasonable under the law.
Cops who want to hassle you, will. You gain nothing by consenting. You don’t have to be a dick about it.
Scenario A: You are stopped for having a blown rear taillight. (totally legitimate stop). Officer asks you if he can look in the trunk. You say sure. The officer doesn’t like the look of you and rifles through your trunk until he finds something that could be called a “bludgeon” (say, a tire iron) and you are arrested for Criminal Possession of a Weapon in the Fourth Degree, a Class A Misdemeanor in New York*. The search was without probable cause but it doesn’t matter because you consented. You can’t afford a trial between the attorney’s fees and the time you’d miss from work and anyway you’re probably guilty of the offense as it is written, so you plead it down to some Class B Misdemeanor – the DA won’t plead it down to a non-criminal Violation because they’re not supposed to do that on “violent offenses.” Whoopee, you now have a criminal record you have to explain to every future employer, educational institution, etc. For having a tire iron in your car.
Scenario B: You experience the same stop but this time you say, “Officer I understand you’re doing your job but I do not consent to a search of my car.” All the same things happen, except this time you get the tire iron suppressed because the police had no probable cause, and the case is dismissed.
Never consent to a search.
*New York Penal Code Section 265.01 Criminal possession of a weapon in the fourth degree
A person is guilty of criminal possession of a weapon in the fourth degree when:
(1) He possesses any firearm, electronic dart gun, electronic stun gun, gravity knife, switchblade knife, pilum ballistic knife, metal knuckle knife, cane sword, billy, blackjack, bludgeon, metal knuckles, chuka stick, sand bag, sandclub, wrist-brace type slingshot or slungshot, shirken or “Kung Fu star”; or