XP was based on the NT kernel while 95 was using DOS. You’re just plain wrong. Spec wise it would not have worked.
And a computer built for 98 sure as hell did not reach the requirements to run Vista. Hell, many XP computers struggled and were not allowed to upgrade.