There are also numerous other economic effects to consider, such as the increased activity from capital spending on automation equipment and software, and (as you pointed out) the economic losses from higher short-term unemployment.
My initial question was only made in reply to a reductionist and intellectually lazy statement implying that the company owner is the only one who benefits from automation. I asked that question in an attempt to get the other commenter to think more carefully about their position (the answer isn't "nowhere" by the way, as the very figures you yourself provided indicate that 70% of it goes directly back into the economy). Unfortunately it doesn't look like they ever replied, but nonetheless I think I've made my point.
Furthermore, someone who is out of work as a result of automation will also be a loss in the broader economy (as they will need services, the government loses income tax where applicable). The math I assume gets very complicated very quickly. But claiming "and from bezos' pocket, where?" is a reductionist statement that can be met with an equally reductionist "nowhere because we know rich people don't invest as much in the economy as they take".