While other retailers struggle in the face of inflation, Costco Wholesale Corp. reported a 20.4% net sales increase for the month of June, with analysts suggesting that higher gas prices boosted the retailer in a few ways.