The pitfalls of AI that could predict the outcome of court cases