nobody equated china to north korea. the post you are replying to applied equivalent logic to an extreme example (north korea) to show more easily that the logic cannot be correct.
States use the "morality" argument when they need to build a narrative and portray someone as bad/evil to justify actions against them, while the real reason is almost always geopolitical interests or money/resources.