I tried to prove that for a commutative ring $R$ with identity, every maximal ideal $I$ is prime. I think my proof was sort of going in the right direction, but this MSE answer was what I now realize that I was going for. I am wondering where exactly my proof goes wrong; I was already suspicious when I had realized that I never used the fact $ab \in I$ anywhere.
Let $I \leq R$ be a maximal ideal, and let $ab \in I$ where $a, b \in R$. Suppose that $a$ and $b$ are contained in $R$ but not in $I$. Without loss of generality, let $J = I \cup \{a\}$. Since $I$ is maximal and does not contain $a$, we must have $J = R$, so $1 \in J$. This means that $1 = rj$ for some $j \in J$ and $r \in R$. But since $1 \neq rx$ for any $x \in I$, we must have $1 = r(ax) = a(rx)$, which implies that $a$ and $rx$ are multiplicative inverses. But $a^{-1} = rx$ implies that $a^{-1}$ exists in $I$, meaning that $1 \in I$. This is a contradiction, so $J = I$ and $a \in I$. Therefore, $I$ is prime.
The initial set-up is identical to the MSE answer, so I think it is the part where I state that $1 = r(ax)$.