I think it's unlikely that AI efforts will go as railroads have. I think being an AI foundation model company is more like being an airplane builder than like a railway company, since you develop your technology.
Boeing tries to compete with Airbus, where the engineers make maybe 70% of what they do in the US, and has upon that made some really bad decisions. Many aircraft companies are profitable.