The "market" broadly speaking is very irrational. I do think that individual assets can be bought up for cheap. I'm not really a huge fan of efficient market theory.
Do you mean that stocks and real estate require trusting third parties and are thus bad investments? If so, you're right in the sense that you trust a government to not violate your property rights, but that's also true of your car and any other physical thing you own.