using AI to tell you the answer means you don't actually know or understand the answer. You know the entire point of education
There are other ways to use AI in a school setting. Grading homework is a tedious and time-consuming task that would likely be simple for an AI to do.
That's certainly one outcome. Another is having AI tell you the answer and you understanding why your answer is incorrect. This is not black and white.
You can also use AI s an endlessly patient tutor. That could be beneficial.