Text this: Machine and human agents in moral dilemmas