Costco Wholesale Corp. may be a latecomer to e-commerce, but consumers love it even more than Amazon.com Inc., according to a customer satisfaction survey released Tuesday.

The warehouse shopping club scored 83 on the annual American Customer Satisfaction Index, edging out Amazon’s score of 82. Amazon had topped the category since 2010, but its score slipped 4 points compared with a…