chore(Algebra): make TensorProduct.equivOfCompatibleSMul more linear (#35643)
TensorProduct.equivOfCompatibleSMul