Where did you hear the pay is terrible? From what I've heard, it seems pretty normal for the industry, at least for software engineers.
Even if nominally the equity is worth the same in the both cases, liquidity is also valuable. (And the equity might not really be worth the same--companies have been forced to IPO at a valuation lower than their last round of funding.)