It's better to consider total compensation. A $100k salary with up to 5% 401k matching is roughly the same as a $105k salary with no 401k matching.
The latter might be preferred since it gives you the choice of what to do with that extra $5k, but it gets tricky if you're nearing the contribution limits.