Terrible analogy. This is not sponsoring but research. Google didn’t just give money in exchange for publicity. Google has traditionally invested in fundamental research that isn't commercially potential, at least in the short term.
If a tobacco company invested in lung cancer research that resulted in some treatment breakthroughs, that research should be celebrated, while their main business should continue to be condemned.
This is closer to being upset at any and all innovations done by an American because the USA does some terrible things. Not all parts of Google are directly tainted by ads and the people on these teams genuinely think they are working on important problems that help advance humanity. I don't think they are wrong to feel that way.