Prof. Colin Miller has an interesting post about prosecutorial discretion during the course of trial.
Besides getting a conviction and an appropriate sentence, a secondary gain of the prosecutor is to have the case affirmed on appeal. Affirmance means a guilty person doesn’t walk or get a new trial.
In the post Prof. Miller refers to a successful prosecution objection excluding “compelling defense evidence,” on what he terms a technicality. He closes his post: