Plus, even without affiliate links, purchase attribution is already scary good. Did you know that credit card issuers and ad tech companies collaborate to attribute brick-and-mortar purchases to online ad views? You have untold billions of dollars at stake. The industry is not banging rocks together.
You could make a search engine for non-commercial content only, and I would actually love to have that, but (a) it would be a woefully tiny sliver of the internet; and (b) Google is obviously not the right company to do it.