It's more of balance the tax hit and saving. Max to save tax and later buy house or Min(at company matching min req) to get cash.