One of my favourite unintentionally funny things about the Star Wars prequels is the fact that Lucas obviously forgot that Jedi can come back as force ghosts right up until writing the script of Episode III.
Like he, or someone he paid, must have watched the original movies to make sure the ending tracked with where we begin in Episode IV and realized “oh, shit. no force ghosts”.
It’s documented that Lucas nearly forgot to have Obi-Wan take Anakin’s lightsaber after the fight, and that had to be rushed in at the last second.