That is the best question.
They differ in the ways and paths but not in intended "goal" ...
All wish to attain Moksha, Nirvana, Mukti or merger with Godness.
The ways could be different as described in Geeta.
Any doubts in this-
Budha also aimed at Mahanirvana "gate gate parasamgate ...."