Unlike China, the United States has threatened North Korea multiple times. From promising to "nuke" them, to spreading things about the country that may or may not be true, the United States has not been friendly to North Korea. China and North Korea, however, trade often. Therefore, North Korea would be closer to China than the United States.
I hope this helps!