Musk has arrived in Beijing amid hopes he will bring Tesla’s autonomous driving technology to China amid intensified competition with local electric vehicle makers in the world’s largest automobile market, according to people familiar with the matter.