Timeless River in the end, didn't change anything in the futur. One could think Sora preventing the time from being changed was unavoidable, but unlike Xehanort, Maleficent and Pete didn't know that.
Otherwise, what. Xehanort would just go back in past, make Yen Sid into Xehanort, and end of...