Ignoring the onvious fact that Starship has been designed from the beginning for going to Mars and SLS only to go to the Moon...
Didn't even the first Starship generation theoretically have a higher payload capacity than the SLS Block 2? And that doesn't even include the further enhancements to the ship design and Raptor updates since.