Earlier quoted context omitted.
Unit tests are just as important as integration tests as long as they're tightly scoped to business logic and aren't written just to improve coverage. Anything can be done badly, especially if it is quantified and used as a metric of success (Goodhart's law applies). Integration tests can be just as bad in this regard. They can be flakey and take hours, give you a false sense of security and not even address the comp…
“Premature abstraction” forced by unit tests can make systems harder to maintain.
Code that’s hard to write tests for tends to be code that’s too tightly coupled and lacking proper interface boundaries.