This man was fired by a computer – real AI could have saved him