I was studying recently and noticed that the torque on a magnetic moment due to a field is defined as $\tau = \mu \times B$. Classically, as far as I'm aware, the magnetic moment is given by $\gamma L$ where $\gamma$ is the gyromagnetic ratio (which is classically equal to $\frac{q}{2m}$, so that we have:
$$\tau = \frac{q}{2m} L \times B = \frac{q}{2m} (r \times mv) \times B = \frac{q}{2} (r \times v) \times B$$
By the Lorentz force, we also have a force $F = q(v \times B)$. Therefore, we have a torque:
$$\tau_{Lorentz} = q r \times (v \times B)$$
However, since the cross product is not associative, these two torques are not equal (even disregarding the constant). Is there any relationship between these two torques? And if I were to properly model the equations of motion of a moving charge in a magnetic field, would I need to consider both of these?