The problem is google results get worse and worse due to SEO optimized websites and ads. On the other hand LLMs just answer your question without the need for you to waste time with that.
And you could just ask the LLM to only answer with the code...