Similar Items: Challenges for generative AI in legal reasoning