Costco can be a goldmine for budget-friendly groceries, but it’s easy to assume the healthiest foods are always the priciest.