A long time ago I sat in court waiting to argue a reckless operation ticket (I was right, but lost anyway) and watched two young kids get basically the same fine as me plus community service after being caught with a rather large amount of marijuana. So I called a lawyer I know to complain. He guessed that those two kids had a good lawyer, no previous record, and some information the prosecutor wanted. He then told me if I ever was arrested to lawyer up and never say a word. Else that good lawyer won't be able to do anything. I'll add that my guess is the charges were never gonna stick at that level. But, I am no lawyer....
I don't practice criminal law, but when people ask me what to do in the event they are pulled over, I tell them two pieces of advice:
1. Be courteous, but exercise your right to remain silent.
2. Never consent to the search.
My law partner, who is a former county prosecutor, adds: "Cops lie."