You can choose a jury when convicted for drug possesion. It is the job of every juror to vote you innocent if they see that the law is immoral or unconstitutional.
That is called jury nullification. It is actively discouraged by the courts. I believe a woman was actually arrested for it. The courts want nothing but a finding of the facts from the jury.