This reminds me of a relatively recent otome isekai where the story keeps looping back after the villainess dies, but both the heroine and villainess keep the memories. So the heroine keeps finding ever crueler ways to execute the latter, to the point where the latest cycle the villainess commits suicide and the shitty god kidnaps a random girl to take her place. Can't remember the name though.