My old job had a pension and they offered me to cash out for $24k or get $100 per month for life — which should I choose?

My old job had a pension and they offered me to cash out for $24k or get $100 per month for life — which should I choose?