Shaq was better because…
He did not have better teammates than Hakeem
Look at the 3-peat Lakers’ teams and tell me who besides Kobe and Shaq were stars (Horry was clutch, but old. They had decent role players, but no stars)
It’s just the same with the 2006 Miami Heat championship team. Granted, this team was lead by Wade, but other than him and Shaq they couldn’t rely on any other star (only stars way past their prime and in their exiting stages of their careers like Gary Payton and Antoine Walker).