Controller has an auto-target that's at least usually fairly accurate, though a bit annoying for gathering classes. (I wish gathering nodes had higher priority. Why would the game think my botanist wants to target the mob next to me instead of the tree in front of me?) Its only major drawback, though, is that it's also the "confirm" button, so only works for targeting when you currently don't have a target at all. if you accidentally hit it to target something when you already have a target, it will instead perform the default action for your current target rather than selecting the one in front of you.

I've only just started trying to get used to playing with keyboard and mouse. There the "target nearest" keybinds/macros seem to work best most of the time. The only drawback (though it's occasionally an advantage) is that you need separate keybinds for each type of target (nearest enemy, nearest player, nearest NPC/Object), and I often wish it had a single keybind that prioritized target types like the "confirm" button does when targeting, so I could set it once to the most convenient key and use it for everything.