Must the avoid battle hex be predetermined? Seems correct.
but rule seems to say otherwise.
No, the rules don't specify this. The phrasing even implies that you don't select a hex until after the die roll is made.
But I don't understand why this would be an issue. By the time the roll is being made, there's nothing more the phasing player can do to impact where the retreating force can avoid battle to.