How do I deal with the guilt of automating people's jobs away?
You make systems better, and sometimes better means a person loses the job that fed their family. Wrestling with that is not a flaw in you. It is your conscience doing exactly what a conscience is for. The day it stops bothering you is the day to worry. You did not build the economy that trades people for efficiency, and you cannot single-handedly stop it. But you are not powerless inside it either. How you do the work matters. You can push for honest warning, for retraining, for treating the people affected as people and not line items. That voice in the room is worth more than your silence. Where you have any say, use it for the human side of the change. Speak up for a fair transition. Remember names, not just numbers. You may not control the decision, but you can refuse to let it be cold. Carry the weight honestly, act decently where you can, and do not pretend the cost is not real. That is what keeps the work from hollowing you out.