Palpatine wanted Rey to complete the silly ritual. She did not do that. And Palpatine was killed from his own lightning directed back into his ugly mug.
Okay so she still killed him, just not in the specific way Palpatine wanted. So she won on a technicality. Not really a huge victory for her character though is it?