I completely agree that the walk/attack targeting is not great, but I remember it being a challenge in the non-enhanced edition as well. Luckily, there's a trick.

Hold down control whenever you attack, which forces your click to be interpreted as an attack rather than trying to intelligently switch between attack and movement. This makes the enemy-attack hit boxes much larger because the engine doesn't have to decide whether you're trying to walk to a spot right next to the enemy.

My suggestion is, if you're playing with keyboard and mouse, just get used to holding down control every single time you attack. It's pretty easy if you just make it a habit.