If you take a look at page 8 of this pdf[0] you'll see that the wargames predict that hundreds of missiles will be used in the first few weeks of an engagement between China and the US over Taiwan. Page 10 will curdle your blood as you'll see that they anticipate to lose dozens of ships including two(!) aircraft carriers. Page 11 shows hundreds of losses of various aircraft.
SpaceX will not save those lives and they will not be able to replace the equipment in time for a second engagement with China.
Take a look at a previous comment that I wrote about this: https://news.ycombinator.com/item?id=42391816
[0] https://selectcommitteeontheccp.house.gov/sites/evo-subsites...
Now that I see that this was not what you're suggesting I don't think that two years is a sufficient time frame to build, test, and deploy the kinds of weapons that you're suggesting.
It seems like America is sleep walking into a horrible conflict with China and this combined with all of the soft power that America is losing in the past few months doesn't bode well for the outcome of this conflict.