The roots of China’s problems lie in its attempt to shift from exports and investment in infrastructure to a growth model based on higher domestic consumption. Brazil is weighed down by costly consumer credit and real-wage gains that have been outpacing productivity growth.