WMT and COST face off as retail giants, each leveraging scale, membership and digital growth to meet shifting consumer demand.