Wow I was always confused by the ending of the last Matrix movie how Neo did what he did, now I must look up peoples ideas of what the ending really meant.
The matrix ending could have been great - if it ended up being that they were never really out of the matrix. That the human need for choice part of the equation was taken into account by the machines and allowed them to think they've broken free (or were fighting a war) when they were never really free. Neo could have been the extremely rare corner case among millions of cycles that figures out they're not really out.
Instead the movie baked in religious overtones and went the supernatural route (basically invalidating everything they set up in the universe in the first place).
I think that, ultimately, most viewers would rather have a movie that presents a picture of humans having a chance at triumph, rather than one where the truth of the story is that we cannot win (because the computer overlords are merely simulating our win to placate us). The latter is far, far more dystopian.
Interestingly, the Thirteenth Floor did a pretty good job of that overall premise (sims inside sims), but without the dystopian overtones.
World on a Wire is an adaptation of the same book directed by Rainer Werner Fassbinder (the greatest director of all time), and is definitely worth checking out.