NK and Pakistan don't directly deter the US. NK deters the US by threatening South Korea, and the big threat isn't with nuclear weapons but with artillery launched chemical weapons. Its nuclear arsenal is mostly about threatening Japan and to a lesser extent Russia and China.
Pakistan is...