LLM engineers rushing to hard code B is A in their "AI". They call it reinforcement learning with human feedback.
As for encoding enough rules to handle things as well as a human, what things? Humans don't work with infinite knowledge so there must be a set of rules (however large) that would be "enough".
The LLM can successfully answer the question at inference.