I'll be on the minority on this...Prince will blow MJ out the water if he includes the songs he wrote for other ppl:
Chaka Khan - I Feel for You
Sheila E. - The Glamorous Life
Vanity - Sex Shooter
That's on top of songs like 1999, Purple Rain, When Doves Cry, Adore, Kiss, The Beautiful Ones, Darling Nikki, Let's Go Crazy, etc...
The range of Prince's catalogue is mindblowing
Prince was the only guy that threatened MJ...made MJ put out Dirty Diana, a song that was certainly inspired by Prince
Prince is the GOAT musician bc he wrote, produced, and could sing...it's not close to me & I understand I'm in the minority but Prince's musical genius was on another level