Counter-Inferential Behavior in Natural and Artificial Cognitive Systems