The world's two most populous countries are diverging sharply—one facing a historic collapse, the other still decades away from peak growth.