walk out of the courtroom and straight up admit that he did it
That's not how Double Jeopardy works. You'd be introducing new evidence which could be used to appeal and retry the case.
Mangione is also open to both federal and state charges. So he's going to go from one courtroom directly into another.