How do you do? vs Hello

Consider the context.

How do you do? is formal, and it is most often used when first meeting someone.

Yes, there is definitely a time and place to pull it out of your lexical toolbox.