There's a hotkey (I believe it's X by default) that specifically targets the closest NPC/interactable object over players if one is available.

A godsend for those crowded first moments of a new patch/expansion.