This was an old school chatbot that had just been programmed with the wrong information. Air Canada tried to weasel out of it, and almost got away with it because Canada has such feckless passenger rights regulators.
Not in a binding way, but Canadian court decisions can still be considered during rulings in the context of persuasive authority.
In any case, the decision they made in Canada is the common sense one.