Costco is enjoying a strong 2026, with shares up 27%, while Walmart recently surpassed the $1 trillion market cap milestone.