Right. But searching the car without consent requires probable cause. The point is not give consent.
Though I've seen cases where the defendant is charged with something and their car seized then the evidence is later found during an "inventory" of the vehicle.
IANAL so I don't how one would deal with that.