Chrome is experiencing unprecedented competition because it faltered on the product. Chrome went from synonymous with fast-and-snappy to synonymous with slow-and-bloated.
Likewise Google invented transformers - but the sin isn't giving it away, it's failing to exercise the technology itself in a compelling way. At any moment in time Google could have released ChatGPT (or some variation thereof), but they didn't.
I've made this point before - but Google's problems have little to do with how it's pursuing fundamental research, but everything to do with how it pursues its products. The failure to apply fundamental innovations that happened within its own halls is organizational.