I do agree that they are different, but related, matters. And the description you provided illustrates it very well.
I would only add that I am pretty much a TDD practitioner, and not doing it is my utter-most exception. Thus I would say: always use both of them. Be wishful. Do TDD.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.