I read a short story once that made me think about something similar, that everytime we die our consciousness shifts to the multiverse where we didn’t make whatever choice lead to it. To everyone in that initial universe you’d still be dead but you’d continue on somewhere else.
I enjoyed it for what it was and was sad to see almost everyone disliked it that talked about it.