What we need are robotic lawyers.
If lawyers did what we assume they do then robots could do it better.
But that’s not what lawyers do. The law is a rich raw material. They mine it for material to bolster their client’s claims. And there is plenty of material in the law to make ANY argument, no matter how ludicrous or illogical.
We would have a better, more prosperous country if our laws were logical. But then what would lawyers do?