I didn’t claim that the way brains work didn’t include statistical inference. That’s why the dog metaphor works. Both the dog and the machine learning model use statistical inference to perform tricks.
Dogs haven’t been to the moon, however. There’s more to the brain we don’t understand.