MV Stop/Pop the Current Scene, Start the Next

I'm coming along nicely on my game flow. Latest burr; how to end the current scene entirely and start the next.
I have my interactive scene, where we navigate a location via 1st person visual-novel-esque panels and conduct some investigation. Once we feel like we have enough evidence we make an accusation; if its incorrect we keep going, if its correct the culprit is revealed and the player has successfully solved the case. Next step is to go to a case summary, awarding a score based on the amount of time left, correct clues deduced, and any mini game scores they racked up. All of this flow is perfect, except that when we're done at the summary we wind up back at the case in the state we were after the successful accusation.
What I want to do is ensure we pop that investigation scene, close it out entirely, so that when the summary scene wraps up we don't go right back into the same case. I'm still working on "pre investigation" type of material, so I can't say where I'm going to wind up, so I'm not keen on loading into a new specific scene, and don't exactly have a root scene to fall back to right now if I wanted to close the investigation, fall back, and then open the summary.
Any direction perchance?
Don't know if I got your point, but can't you manipulate the SceneManager._stack array, to decide what scene it gets back to when popping?
how to end the current scene entirely and start the next.
To be clear, that is exactly what the SceneManager methods goto or push do: there is only ever 1 scene instance in memory at a time unless you have deliberately put in the effort to implement an alternative.

However, the underlying data for the scene could (and often should) be entirely separate. When a scene instance is deleted, that will only remove the stuff defined directly on the scene, which is typically just for handling of input and display. The actual data (perhaps just variables and switches?) should be modified in tandem to match the expected outcome.

We can't really give a more precise answer without seeing solid example(s) of what you've done.
I code in a few languages, so admittedly there's been a few things where its been a matter of changing gears and my impulses not aligning quite right with RPGMMV.

I had a longer reply prepping with code, but I think I nailed something, and its less a matter of code and more a matter of understanding. When I think of an array pop, I'm thinking of it popping off the end, reducing things, which it does indeed do. SceneManager.pop however takes that return and loads the scene. The current scene is not on the stack, which was my thinking, so we're not popping the current one off, its not there...we're removing the last one and loading that one, also discarding the current.

Code:
SceneManager.pop = function() {
    if (this._stack.length > 0) {
        this.goto(this._stack.pop());
    } else {
        this.exit();
    }
};

That was the logic I was missing in how this worked. Pop won't do what I want to do. I need to unset the previous entry so that when I pop the summary scene, the latest one in the stack is the one before.

EDIT:
Yup, was spot on. To get my desired effect, I "pop" directly on the _stack in the new scene. Doing so without using the SceneManager.pop() avoids utilizing the returned element.

Original thread: https://forums.rpgmakerweb.com/threads/stop-pop-the-current-scene-start-the-next.179120/