I agree. Not everything needs to be a math problem, but using the king of Fantasy himself Tolkien, Gandalf coming back to life didn't feel like an asspull because Tolkien very strongly hinted at him being more mythical than man from the very beginning even before Gandalf's full origins where revealed.