(a-b)(a+b)/(a-b) = 0/(a-b)
this should equal (a-b) = 0/(a-b)
No, the (a-b) on the left numerator and the (a-b) on the left denominator cancel each other out.

Maybe you mixed up the operator signs?