Mysterious number $6174$

Solution 1:

$6174$ is a fixed-point of this process, i.e. $7641 - 1467 = 6174$. It turns out that it is the only fixed point, and there are no nontrivial cycles.

The sum of digits of the difference could also be $27$, e.g. for $6555-5556$.