I would say there's basically zero chance lawyers go out of a job. As soon as it looks like lawyers will be replaced by AI, the people who run the government (who are lawyers!) will pass laws to make it illegal to cut the human out of the loop.
The only way they can make it illegal to take the human out of the loop is if they ban self representation. Otherwise people will do research with AI and just present their findings in court. But the free/cheap lawyers are actually so much worse.If laws prevent self representation we would increase the inequality even more.