Their own lawyers would be on their case if they were infringing halfway through the pipeline. They don't have to, and it would weaken their case where it counts.
> a court could find it substantially similar to the Matrix and thus copyright infringing
Substantially similar is not the standard, otherwise they would have had to stop making time travel movies about 70 years ago.