RANCHO PALOS VERDES, Calif.—Tesla Motors Inc. chief Elon Musk said he considers Apple Inc. an eventual direct competitor, with electric vehicles could go into production as soon as 2020. Apple will “probably make a good car and be successful,” Mr. Musk said at the Code Conference here Wednesday. “They should have embarked on [the car] project sooner.”...