The question is, “What’s in it for China?”
China probably would demand, in exchange to allowing the North Korean regime to meet its’ end, for US troops to leave the Korean Peninsula when the North Korean problem is resolved.
China and South Korea aren’t exactly enemies anymore, although sometimes there are tensions between the two.
Prevention of the loss of face, coupled with less potential of war with the United States.