The reasoning I came to is that given the probabilities of how children are conceived, if my dad didn't have cancer, our first child would have been someone else than our daughter.
So basically wishing anything different for my dad would be wishing that my daughter didn't exist.
And I guess that made his death easier for me to accept.