Yes. I suppose in the scope of industrial process there are basically two types of action: shoveling (a scalable technique that is understood and can be trained) and invention (creating new scalable techniques). If it's just shoveling, capital investment may very well yield higher output.
Invention on the other hand happens on a constrained pipeline.
The shoveling that looks like invention is when an existing invention is adapted (and sometimes called innovation). I presume it's hard for outsiders to say when a subject on which expertise is not yet commoditized is ready for shoveling or not.
I think this is what happened here - since everyone were hyping the AI revolution, they presumed the technique was ready for industrial adaption and only lacked in dedicated subject experts and existing processes which can be adapted. They presumed there was some core invention that could be adapted and monetized.
Given how poorly understood subject AI is, and how lucrative a self driving car would probably be, some risk taking in this area is certainly understandable. I have no idea if the investments were in line with the risks and rewards or not.