The charge will probably be simple possession of a schedule IV controlled substance.
Yes i think you should fight the case. He admitted to an illegal stop by saying they stop all out of towners. That could be enough to get the evidence thrown out.
Any drug conviction could harm your career, even a minor one like 2 xanax.
They are not going to put you in jail for this but could entangle you for years of probation. It is absolutely worth fighting it. If you cannot affors an attorney the curt has to appoint one to assist you. I would tell the attorney I want to try a motion to suppress the xanax based on the illegal stop.
"He only asked to see my driver's license and said there had been burgleries in the area and they were stopping all out of towners," He admits he had no specific articulable facts that made you look suspicious. It was a random illegal stop and the search was the fruit of that poisonous tree. That is a legal doctrine meaning if we convince the curt that the initial stop was illegal, the evidence gets suppressed.
And you are right, if he knew you were from out of town it means he ran your plates before he pulled you over.
If you tell me where this happened I will look for a local criminal
defense attorney who offers a free consultation.
I hope this information is hepful.