But is that simply you justifying your actions?
The problem isn't absurd when posed to humans because, how about the scenario where you don't know either person and you need to make a decision in a matter of seconds. That's the point.
If my mother was on one of the tracks, I might justify my actions to pull the lever and have it veer into the other group, but that isn't necessarily a morally correct decision.
The author in the article says that the problem is absurd when posed to humans, then goes onto applying the same principles of the problem to AI and cars but does not say that the problem is also absurd with regards to AI, despite coming to the same conclusion.
This is where the problem is: life is way more complex and nuanced to distill down to such a simplistic scenario. Measuring morality is not an instantaneous action.