AI is better than humans at operating in stable environments, with static, well-defined rules and consistent inputs. On the other hand, humans are much better than AI at handling surprises, filling in gaps, or operating in environments with poorly defined rules or incomplete information.