I found the below online with no explanation what is wrong, but I am guessing it must be a condition or assumption, but can't see what the issue is.
a = b
ab = b²
ab - a² = b² - a²
a(b - a) = (b + a)(b - a)
a = b + a
0 = b
Can anyone see what the issue is?
You cannot cancel $b-a$ like that since you have started with $a=b$ and hence $b-a =0$.