In either case, logic would dictate that with the target she has on her back, she’d at least to attempt to pass on what she knows to someone else.
As mentioned earlier, the Jedi are at risk of dying out completely if something happens to Rey.
Finn has been her pal since they first met on Jakku, and teaching him seems like a great option.
Bad things have happened to main characters before, though I’d be lying if I said I really expected something awful to happen to Rey before the end of The Rise of Skywalker.