But I've asked clients this question and while they would love to not have to pay lawyers - if you ever put the thought in front of them and asked whether they actually want an AI to represent them in court, when stakes are high and there's a chance of losing... well, I've never met anyone who has said they willingly take that chance.
Some fields will also certainly never be AI-ified. Not a snowball's chance in hell (and I know it sounds like a cranky person talking) that lawyers and judges in criminal/constitutional trials will ever be "replaced" by AI. It has nothing to to with the possibilities of present and future technology, but everything to do with optics. Society is almost certainly never going to accept being judged and/or losing to AI and algorithms. Even if a person has a losing case they would want to make sure to hear it from a human rather than a machine.
Ha, you might like Pohl and Kornbluth's classic dystopian science fiction novel "Gladiator at Law", which I think was from the 1950s. There is a trial scene near the beginning where the prosecutor and defense spend a page or so addressing the jury box. Then (spoiler) the jury box flashes and whirs, and spits out the verdict.
I believe you have a rude awakening ahead.. resolve the roles in court to authority roles, and yes, none of the professionals will give up any authority; but the "work" of law, that is to study, consider, refute and prescribe, especially with citations and written works.. absolutely yes they are top on the list to be replaced by AI.