There are two modes of human cognition. Objective thinking for objects out there and reflective thinking that analyze thoughts and feels. Both are ontologically different and there's no way knowledge of either is transferable to the other. However, the idea that objects could be thoughts are more plausible than thoughts being objects. Hence, materialism fails, because it cannot account for qualia, because that's not the mode of thinking for materialism. Materialism man thinks with his objective brain. Quantum mechanics just shows us that matter as we understand it, isn't true. That means materialism still maybe true, as much as idealism, but in reality, both are one and the same thing fundamentally, and it is our inability to see both sides of the coin simultaneously.