I don't follow why it makes a difference? If someone wants to invest to improve their future quality of life, why would it matter how long they will live in a place for?
I was asking because, in country A, if you don't have a lot of money for retirement, you might soon be out on the street, or otherwise soon dead; but in country B, things might be more affordable, and have more social safety net, support, and sharing.
What if you plan to stay permanently? Does that change your priority for accumulating more personal wealth?