Dollar General is more expensive than Family Dollar, but it is cheaper in the long run. Dollar General has a lower net profit margin than Family Dollar, so it costs the company more money to make each dollar of profit.
Family Dollar also pays its employees more, which may offset the cost of their products. In the end, it is up to the individual to decide which brand is better for them.