On a serious not The Matrix was a fine film with fantastic effects but on a scale of Punch & Depth per $ spent on production Dark City delivered more bang per buck.
They are definitely related, and I also think Dark City was the better version of Matrix 1 on a storytelling and aesthetics level, Matrix's innovative effects aside, but then I like all of the Matrix sequels a lot more than I like the first Matrix film.
If you like late 90's / early 2000's M. Night Shyamalan, the first half of the film is brilliant. But after the reveal it falls apart like the last season of Game of Thrones. It's as if Lana stopped caring.
It would have been fantastic to have timed it with the release of the Matrix MMO game. It's as if that had been the plan all along.