> I also feel that people conflate duplicating code with duplicating behaviour, which is what DRY is really about.
Indeed. The definition of the DRY principle [1] is:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
and not:
Don't type the same characters into the keyboard multiple times.
People often forget that.