When summing torque, the choice of axis only does not matter when the net force is zero. So only in statics this is true.
Otherwise you transform torque from one place to another with $$ \boldsymbol{\tau}_A = \boldsymbol{\tau}_B + \boldsymbol{r}_{B/A} \times \boldsymbol{F}$$
Specifically in dynamics it is convenient to sum torques about the center of mass, because this decouples the equations of motion.
The center of mass has the property of decoupling momentum in translational and rotational parts
$$ \begin{aligned}
\boldsymbol{p} & = m \boldsymbol{v}_C \\
\boldsymbol{L}_C & = {\rm I}_C \boldsymbol{\omega} \\
\end{aligned} $$
and by application of Newton's 2nd law the equations of motion are also decoupled
$$ \begin{aligned}
\boldsymbol{F} & = \tfrac{\rm d}{{\rm d}t} \boldsymbol{p} = m \boldsymbol{a}_C \\
\boldsymbol{\tau}_C & = \tfrac{\rm d}{{\rm d}t} \boldsymbol{L}_C = {\rm I}_C \boldsymbol{\alpha} + \boldsymbol{\omega} \times {\rm I}_C \boldsymbol{\omega} \end{aligned} $$
A typical example of this point is when hanging a rod from the ceiling using two equal strings at its ends, and you cut one of the strings. You will find the tension on the other string only if you realize that the sum of forces is not zero and the torque evaluated should consider that.