What you have is called anidentity, which is true for all values ofq.

If an equation can be ultimately simplified to 0 = 0, then it is an identity.

If the equation ultimately simplifies to 0 = 1, then it is inconsistent, i.e., it has no solution.