Apple’s switch from Intel to its own chips is its smartest move in years