Is true only for x = nπ, where n is an integer. When you find these values, you are solving the equation.
On the other hand, an equation that is true for all real values in the domain of the variable is an identity. For example, the familiar equation
sin x = 1 - cos2x identity
is true for all real numbers x. So, it is an identity.