Is the lift produced by a wing with a 10° flap equal to the lift created by a wing with 10° AOA but with no flap?
No, there is a big difference between an entire wing being at an angle of attack and a small part of the wing being at an angle of attack.