Exactly. It's true she couldn't of known when she'd die, but surely she knew her health was declining.
She should've stepped down while there was a strong chance of her being replaced by someone with views like her's, rather than handing that decision over to her direct opposition like she did.