I know a few PDs, and I also worked in a court. The story checks out to me. I don’t think you’ll find a lot of PDs who will say cops and prosecutors regularly target genuinely innocent people. For the most part the job is to make sure all the boxes are checked and that the prosecution matches the actual crime.
Oh, you haven't met a lot of PDs, then. They'll tell you cops lie literally all the time and will make up evidence if they decide they don't like you. It's just easier and there's zero consequences for them if they're caught.