(China is interesting because strictly speaking they follow a theoretically suboptimal strategy -- they keep their ICBMs in an unarmed configuration and would "absorb the blow" of a surprise nuclear first strike. The US and RF follow the theoretically optimal "launch on warning" strategy, which requires ICBMs that are always armed and ready to launch within minutes.)
One reason to maintain an ICBM force is that the ICBM silos protect the missiles against anything less than a direct nuclear strike; by placing the silos far from urban areas you force the opponent to expend many nuclear weapons attacking individual silos, which greatly increases the cost of a first strike. If you were wondering where bomber forces fit in, maintaining both ICBM and bomber forces creates a "synchronization problem" -- both must be destroyed at the same time to prevent retaliation, and by strategically placing the air fields and missile silos a country can make a synchronized attack more difficult (the attack will be detected long before anything is destroyed, but one of the two will have more time to initiate the retaliatory strike). Bombers also force the opponent to expend significant resources on air defense, resources that could otherwise be devoted to offensive weapons. Another reason to have a bomber force is that bombers can be recalled after being ordered to strike; missiles cannot be recalled once launched and even if they could be the other side will detect the launches and immediately retaliate.
The US and USSR developed an entire theory of the nuclear triad during the cold war, and both reached the same basic conclusions about the need for all three legs.
But it costs a lot to feel confident in SLBMs, especially if the top of your target list includes the USA.
Otherwise, if you're talking about the USA specifically... ICBMs should probably be considered an expensive hedge.
Finally, "optimal" depends on your definition. China has chosen a public "no first strike", while also avoiding launch on warning likely for a variety reasons. China's publicly stated "minimal deterrence strategy" (which they seem to be walking away from) was probably at least partly a pragmatic choice, driven by resource constraints. Also, for what its worth, it does seem like China is also walking away from a strict "no launch on warning" policy as well.
The lack of launch on warning (this is my speculation) was probably a combination of lack of technical capability (both ISR and C2), wanting to maintain tight central control, and wanting to play up the advantages of being "the third player".
Here's a whole recent report on China's nuclear force: https://www.tandfonline.com/doi/full/10.1080/00963402.2025.2...