Let $R$ be a commutative local ring and let $x \in R$ be a non-unit. Suppose that for all exact sequences $0 \rightarrow A \rightarrow B \rightarrow C \rightarrow 0$ the following sequence is also exact $0 \rightarrow A/xA \rightarrow B/xB \rightarrow C/xC \rightarrow 0$. Prove or disprove $x=0$.
All I found out is that $0 \rightarrow A/xA \rightarrow B/xB \rightarrow C/xC \rightarrow 0$ is the same as $0 \rightarrow A \otimes R/(x) \rightarrow B \otimes R/(x) \rightarrow C \otimes R/(x) \rightarrow 0$. So if $R/(x)$ would be flat for all $x$ not a unit then the statement is false.
In general $R/(x)$ is not a flat $R$-module. For example choose $R=\mathbb{Z}$ then $ \mathbb{Z}/2\mathbb{Z}$ is not a flat $\mathbb{Z}$-module. I haven't found any example for this where $R$ is a local ring.
Can anyone help me out here how this is done?
From this answer we get $(x)=(x^2)$, so $x=ax^2$ for some $a\in R$. Then $x(1-ax)=0$ and since $1-ax\notin m$ we get $x=0$.