You never know when you might need to say “Help, I’m dying” in a foreign country, and the sooner you learn how to say it in the local language, the better your chances of survival are.
However, your chances of survival don’t depend on whether you know the local greeting or not, since it’s mostly used in a casual conversation, not a life-threatening situation. Therefore, one should 1st learn how to say the phrase “Help, I’m dying”, and then learn the greeting.
You’d be much better off learning the local emergency number and how to provide a street address.