Maybe if humans took responsibility for the algorithms they created and didn't shrug and say, "It's the algorithm" then "the algorithm" wouldn't be the antagonists in this story.
Even in that light, algorithms aren't the enemy: models are. If I build a predictive model that harms people, then my model is the cause of harm, not the fact that I built it using random-forest or CNN.