A user on X sparked outrage by using ChatGPT to determine castes of Harry Potter characters, leading to widespread criticism.