I almost agree with you but would take that a big step forward - eliminate the charge with A and yet convict on a "lesser included offense" of Z once the case goes to trial. That seems too close to being double jeopardy - if the charge is A then that alone should be tried
with no option to later alter, reduce or modify that charge.
Especially when that charge involves a "hate crime" or a specific requirement to show (prove) prior intent, e.g. first degree murder. It seems far too often that one is
intentionally overcharged in order to force a plea deal but the person charged is not given the option to call the state's bluff and demand a trial on
only that charge.
It boils down to if the person feels that they may have done anything wrong then taking (making?) a plea deal is likely far better (in terms of the sentencing outcome) than if that same "deal" (modified or reduced charge) were to be reached by the court's "modified" verdict and letting the judge decide the sentence later. This is often called the "trial penalty".
Plea Bargaining legal definition of Plea Bargaining