What that study you linked to shows is that people interpret flavor with high suggestibility for the food's origin. They were misrepresenting origin to tasters--not just blindly tasting things. Plus, they were only looking at tomatoes. I guarantee if you run a completely blind experiment (with no suggestion bias) with peaches, gourds, or any meat product--factory system loses.
But the main point is that farmers have to make choices. To the extent that subsidies make factory-model decisions more viable--this leads to more food that is artificially cheap. And unpriced negative externalities are a form of subsidy. You can exploit a farm's ecological endowment or invest in it. If prices were perfect--investing in ecological richness would be more heavily rewarded.