Sadly, that is not how it works. The DA decides if a prosecution is to be pursued, but the prosecutor is there to ‘win’ his case and put another notch in his belt. Bad prosecutions are pursued all the time.
And this is why I generally despise lawyers: their mercenary nature. They’d prosecute their own mothers if it meant another notch in their belts.