Getty Images Elon Musk, left, and Tim CookApple is definitely getting the last laugh over Tesla. It was just over two years ago, in the summer of 2016, you may recall, when Apple AAPL, +0.06% was struggling. Customers had become accustomed to blockbuster new product launches in rapid succession, and the company didn’t seem to be delivering. Its stock was trading for a third less than where it had stood in mid-2015, just a year earlier. Many were expressing frustration with Tim Cook, Apple’s CEO, characterizing him more as a caretaker than a visionary. Some openly began lobbying for Cook to be replaced by Tesla’s Elon Musk, on the grounds that he would be able to rekindle Apple’s innovative spirit. Now fast forward to today. Apple’s stock is up more than 150% from its mid-2016 low. Cook is riding high. And many no longer view Musk as a visionary but as a hindrance to Tesla’s future—in over his head and increasingly unhinged. Tesla’s stock TSLA, -1.33%is down 6% year to date, in contrast to an 8% gain for the S&P 500 SPX, -0.17%via