And that a lawyer's job isn't even to ensure that the law is enforced. A defense attorney's job is to get the defendant the least punishment possible, regardless of what the defendant actually did and the legality of such action. The prosecution's job is to seek the the most punishment possible. In a criminal case, a fair outcome hinges on the two lawyers being roughly equally skilled and resourced, but if this isn't the case then the case will be a blowout; but it's still the winning lawyer's job to crush their opponent without mercy, which in any other context (e.g., sports) would be considered scummy. Unfortunately, that's just the job.
It’s fairly clear to me that maximizing punishment ought not be the prosecution’s goal and I’m not even sure that it’s currently the goal. It seems like maximizing conviction rate is closer their apparent goal.