No one is trying to rewrite history about that.
Michael Jackson knew that he did not manage to achieve success in the film industry with his first steps into films (‘The Wiz’, for example, that came out in 1978, was a big commercial flop).
When Prince’s ‘Purple Rain’ film came out and met with huge commercial success in 1984, Michael Jackson felt jealousy towards Prince, and he wanted to create something similar with a similar huge commercial success (note here that Michael Jackson had already attended also a screening of the ‘Purple Rain’ film held by Warner Bros. for a special, small audience, before its public release, which also shows his competitive attitude towards Prince).
When the ‘Purple Rain’ film came out, Michael Jackson became at the time so obsessed with Prince’s ‘Purple Rain’ film that he started to read avidly all the press/news articles about that film and even to collect those articles for himself (there are also available photos that confirm that).
‘Moonwalker’ (1988) was a musical film based on a studio album (‘BAD’

just like the ‘Purple Rain’ film (1984) which was based on the ‘Purple Rain’ album.
It is not also a coincidence that he bought and created Neverland Ranch just one or two years after Prince created his Paisley Park.
Michael Jackson did these things also because he wanted people to compare him with Prince because that would help him to stay relevant (it was then when he along with Frank Dileo started to plant also stories on press about a rivalry between these two artists).
Also, Michael Jackson along with AEG Live both knew since March (2009) that he was about to perform at least 25 ‘This Is It’ shows, and part of the reason for that number was to outdo Prince’s 21 shows at that venue two years earlier.
Michael Jackson in his final period was still feeling so competitive towards Prince that he desperately wanted his ‘This Is It’ shows to be better than Prince’s shows:
“
…But Kenny, God channels this through me at night. I can’t sleep because I’m so super-charged… if I’m not there to receive these [creative] ideas, God might give them to Prince…’” (Michael Jackson, 2009)
Michael Jackson was a highly insecure and competitive artist.