This man was fired by a computer. Real AI could have saved him