Tesla is discontinuing its Model X and Model S amid a turbulent EV market, even as the Model X tops used-car sales rankings.