I'm referring to the cash salary only.
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.)