SpaceX and Tesla has a dynamism that you don't really see in the US anymore, at least in engineering. If you look back to Lockheed Martin or Boeing back in the 50's and 60's (or China today, really) you see the same sort of enthusiasm and ambition that the corporate culture of SpaceX and Tesla have. The US really was once great (in terms of STEM, not human rights) but they've lost it except in a few places. American power engineers, for example, all have this defeated look to them after like, a year in industry. You talk to them and (especially after the Texas power crisis where hundreds of people died while the power companies made massive profits) and there's this resignation and defeatism. While Chinese power engineers are excited to work in their field. You ask them about their job and their eyes light up.
This is the same with the SpaceX engineers. You get them going about their job and they won't shut up. This is important, excited, motivated people do good work. If the US can make that attitude contagious across the rest of the country, they'll be back on top. If they can't, then you see what's happening now continue onwards: China keeps rising (because the Chinese engineers are so fucking excited to be going to work, seriously) and the US keeps sliding.