I guess it's about a tie. If I had to choose though, I'd probably go with SM64. SMS was frustrating, and overall a waste of time.
Only reason I played sm64 though was the nostalgia.
Sunshine becuase it gave me a vacation when I couldn't have one. I love the EVERYTHING and the water physicks are great. It has the right amount of challenge to it. 64 is great, but didn't age very well.
I liked them both equally. Super Mario 64 is a classic and one of the best games ever made. However, I loved Super Mario Sunshine a lot because of the graphics, Water physics and voice actors. It was funny. However, it did get annoying at times because it was a little too long and difficult.
I prefer Sunshine; It was more than Princess got kidnapped at the castle, they were actually somewhere else. They introduced the Piantas and Bowser Jr.
As for the gameplay, I thought it was great and the challenges in the caves/tubes were addicting and hard, or at least when I first played it. The only thing I hated about this game was the atrocious voice-acting.