I don't mind this when it's a friendly who has played the ball that is going out of play (so the other team would get the throw/corner)
But when it's a opponent player who has played the ball and your player stops it and then instantly loses it back to the other team
every time, the AI should be smart enough to check if there are opponents who will get there before themselves or other friendlies
and leave the ball in them cases.