Costco and Dollar Tree are performing well in a challenging economy, but one has a stronger track record of success.