Panpsychism, in the form of Integrated Information Theory (IIT), is a much more serious competitor to dualism and idealism than materialism could hope to be. Panpsychists are not trying to claim that consciousness is merely an illusion. They may be wrong but they aren’t ridiculous.
But first, wait a minute.We do not really know what consciousness is. That is true whether or not “our intelligence and our experiences are ineluctable consequences of the natural causal powers of our brain, rather than any supernatural ones.” as Christof Koch claims.