The specifics of a situation determines the best tactics, not a generalization.
If the consequences of attacking are dire, then no, tactically you are not better off attacking whenever possible.
If you can't harm a creature, say a golem that has immunity to non magical damage, and you have no...