Real life Law is more likely to find a real culprit than Ace Attorney law.
But man is it significantly more boring.
If Ace Attorney stuck to realism, then its gameplay would probably have been boring, and its narrative wouldn't have worked as well as it did.