I’d say they’re about equal. In my opinion it mostly comes down to how they handled (and eased players into) 3D cameras compared to most contemporaries.
Mario 64 for being among the first non-demo products that highlight total true 3D movement in general, which is kind of nebulous but very important. The environments being non-linear playgrounds help showcase the technology better than, for example, Crash Bandicoot, which still very much has full 3D movement but it is still totally on rails. That sense of ”freedom” is an important distinguisher.
In 1998 people were already way more used to 3D environments being navigable, but every single 3D game ever made that enables the camera to seamlessly go from following the player to focusing on specific items in the game world with a togglable lock-on mode can be specifically traced back to Ocarina.
But yes like others already said, Mario being so ”fluid” compared to everything else at the time probably wins.