Wall Street's main indexes showed mixed performance on Tuesday, with gains in Coca-Cola and Apple countering losses in Tesla.