Suppose a father wants to know whether his son went to school today or not at 5 PM after school hours.
Is it correct to ask:
Have you gone to school today?
Because his father has seen his son? Is it better to ask "Have you been to school"? because “have you been to school” means that he has gone to school and come back.
Similarly, can the son say “I have gone to school today”? because the son is at his house at the time of speaking.
In order to avoid this confusion:
Is it better to ask
Did you go to school today?
since the response would be “Yes. I went to school today."?
I hope this is not considered off-topic or a duplicate of the previous posts because I showed a different context.