I played a game on the PS2 called Shadow of Memories, where a guy turns up in a small German town and is murdered. He meets a being names Homunculus that has time travel powers to give him another chance, so the game is you, going back in time over and over to continue to prevent your own death my many methods.

I've never seen anyone ever talk about this game. The game said it had 5 ending on the box but I think I counted up to 8 endings.

For that it unlocked a bonus god mode where you (the character) already knew all the plot twists at the start and can resolve the entire game in a few small actions.