Let $Y\in L^1(\Bbb{P})$. Pick $Z$ s.t. $\Bbb{P}(Z=\pm 1)=1/2$ and s.t $Z$ is independent from $Y$. Now define $X:=YZ$. I want to prove that $X$ and $Y$ are not indepenent.
My idea was the following:
Proof $$\begin{align} \Bbb{P}(X=1,Y=1)&=\Bbb{P}(YZ=1,Y=1)\\&= \Bbb{P}(Z=1)\\&=1/2\end{align}$$ But $$\begin{align} \Bbb{P}(X=1)\Bbb{P}(Y=1)&=\Bbb{P}(YZ=1)\Bbb{P}(Y=1)\\&=\Bbb{P}(Y=1)^2\Bbb{P}(Z=1)\\&=1/2\cdot\Bbb{P}(Y=1)^2\neq 1/2\end{align}$$ where in the second equality I use that $Y$ is independent from $Z$ to write $\Bbb{P}(YZ=1)=\Bbb{P}(Y=1)\Bbb{P}(Z=1)$.
Does this work or not?
The second equality in the proposed proof is wrong: $$ \Bbb{P}(YZ=1,Y=1) \ne \Bbb{P}(Z=1) \,,$$ Unless $Y$ is the constant 1.
What you are trying to prove is false without further assumptions. Indeed if $Y$ has the same law as $Z$, then $X,Y$ are independent.
To get the desired conclusion, add the hypothesis that $|Y|$ is not almost surely constant.