While Dollar General is focused on small-town, lower-income customers, Walmart benefits from a broader customer base and performed better in recent growth metrics.