If I were them, I'd absolutely not plead guilty. I'd represent myself and have all the fun I could with the CA.
Then I'd explore every avenue for suing her. I trust these people to know the ins and outs of that kind of law.
There’s virtually no legal mechanism for holding prosecutors accountable for misconduct. There are plenty of cases in which courts dismiss charges having literally found the prosecution to have committed misconduct and yet absolutely nothing happens to them. So good luck with that. It’s just a fantasy.