The AI in RBY chooses its move after the player does. If you switch out, say, a ground type for a water type, the "good AI" trainers would click thunderbolt over blizzard, even though that's obviously a terrible move for the original target.
More than anything, I'd love to see boss trainers...