If $a, b$ are two numbers such that $(a+b)^2 = a^2 + b^2$, then $a.b = 0$.

Is there a similar statement for square matrices.

"If $A, B$ are square matrices such that $(A+B)^2 = A^2 + B^2$, then $A.B = 0$."

Note that if $(A+B)^2 = A^2 + B^2$, then $AB = -BA$, hence $tr(AB) = 0$