SHANGHAI—What a week for Chinese markets: First came a rally induced by a leading global index compiler’s long-awaited decision to include Chinese stocks and then a selloff after a regulatory crackdown on some of the country’s biggest companies. MSCI Inc.’s move on Tuesday to include for the first time Chinese shares in its global benchmarks was a recognition of the sheer weight of the world’s second-largest stock market.