You might be referring to the split-brain experiments, where researchers studied patients who had their brain hemispheres separated by cutting the corpus callosum – the “bridge” between the two sides.
In these experiments, text can be shown to only one eye, allowing researchers to communicate with just one hemisphere without the other knowing. The results are fascinating for several reasons, especially because each hemisphere demonstrates different preferences and gives different answers to the same questions. This naturally raises the question: “Which one is you?”
Another striking finding, similar to what you were referring to, is that researchers can give instructions to the non-verbal hemisphere and then ask the verbal one to explain why it just performed a certain action. Since it doesn’t know the real reason, it immediately starts inventing excuses – ones the researchers know to be false. Yet the participant isn’t lying. They genuinely believe the made-up explanation.
As for consciousness, I think you might be using the term a bit differently from how it's typically used in philosophical discussions. The gold standard definition comes from Thomas Nagel’s essay What Is It Like to Be a Bat?, where he defines consciousness as the fact of subjective experience – that it feels like something to be. That existence has qualia. This, I (and many others) would argue, is the only thing in the entire universe that cannot be an illusion.