Earlier quoted context omitted.
We can take your train of thought further still. If AI ever becomes super good at lawyering, why would we even need law firms and lawyers at all? We could feed legislation and constitution into the model and have it argue against other lawyer bots in court in front of a judge bot.
Not buying the judge not part. A human being judged by a non-human will be very far in the future. Bots can’t be held accountable. It’s also an “us vs. them”, for some people it’s hard to accept being judged by a different gender, ethnicity, etc. A bot telling you to go to prison? Tough sell.
Without being too much of a downer, neither can judges in most places. Source: personal experience in a country with "telephone law".