Proof of uniqueness of conditional expectation

Solution 1:

The problem with your argument is that $\int_{\Omega} X\,dP = 0$ does not imply that $X=0$ almost surely, unless you already know that $X \geq 0$ almost surely. Since you don't know that $Y-Y' \geq 0$ in your argument, your conclusion does not follow.