Here's a bit of general advice-
Choosing a defense attorney can be tricky.
There are many public defenders who believe in what they are doing and they will do everything possible to get the best possible outcome for their clients. But some public defenders are only in it for the paycheck and couldn't care less about their clients. And some PD's won't hesitate to sell out their clients to the prosecutor by lying to their clients and convincing them to take the first rotten plea deal that the prosecutor offers.
Hiring an attorney is unfortunately no guarantee of getting good representation. Many law firms have multiple lawyers each working heavy caseloads. So when you hire a law firm it's very possible to get stuck with an attorney who is only interested in ending your case as quickly as possible. And the best way for them to do that is to push/convince their clients to take the first plea deal that the prosecutor offers.
The first plea deal offered by the prosecutor is often referred to as "the idiot deal", because only an idiot would take it. Every criminal with experience going through the system knows that you NEVER take the first deal, because the first deal is the worst deal for you. Instead, you always INSIST on a trial. This does two things, it motivates your attorney to try and get the best possible deal out of the prosecutor so that they (your attorney) doesn't have to go through the trouble of a trial, and second, it motivates the prosecutor to offer a better deal for the same reason. Often the better deal will be offered right before jury selection begins, or right before the trial is set to begin.
Unfortunately it can be difficult to tell up front if your attorney is a good one or a bad one. But one way to tell is, if they push you to take the first plea deal, chances are pretty good that they are a bad one.
A few things to know about law firms and hiring an attorney.
Law firms that cater to the masses often advertise "Free consultation". This is bullshit. All that "free consultation" is is a sales pitch. Chances are the person providing the "consultation" isn't even a lawyer, just a salesman for the firm. They will often tell you up front that they are not permitted to give you actual legal advice, and they will likely ask you to sign a statement showing that you understand that they are not permitted to give you legal advice.
After verifying that you are able to pay, the law firms "salesman" who gives you the "free consultation" will blow all kinds of smoke up your ass. They might make all kinds of promises regarding what the firm will do for you, and tell you how lucky you are that they can take your case, and how they love taking cases like yours and fighting the DA's office on behalf of their clients, but it's all bullshit. All they are trying to do is convince you to sign the check, or hand over your credit card.
There are basically two ways that law firms and lawyers take payment. There is the "flat fee", which means you pay the full amount up front. Or there is the payment plan, which means you pay as you go. The payment plan costs more. But here's the thing, if you go with the payment plan YOU control the money. And if you come to dislike your attorney, or the firm, and want to fire them, you can simply stop paying them. But if you pay the flat fee, THEY already have your money. And if you want to fire them you could wind up in a whole other legal battle trying to get a refund. Good luck trying to sue lawyers or a law firm. In my opinion, although you pay more on the installment plan, it's the better option. For another reason, it gives your attorney an incentive to do a good job for you and make you happy so you won't fire them. Whereas if you paid up front, then they already have your money, and they can feel free to screw you over because they have already been fully paid.
Always research an attorney or law firm before you hire them. Ignore any reviews that they post on their firms website, because they are only going to post the good reviews. Check the firm/lawyer out with the Better Business Bureau. And check review sites online.
Best of luck, because if you get caught in the teeth of the criminal justice system, you're gonna need all the luck you can get.