Alternatively, you can just check it directly.
To prove quantifier elimination, it is enough to show that every formula of the form $\exists x \varphi(x,\bar y)$, where $\varphi$ is quantifier-free, is either equivalent to a quantifier-free formula with free variables $\bar y$ or it is simply always false or true.
Since $\exists$ distributes over disjunctions, it is enough to show this for the case when $\varphi$ is a conjunction of atomic formulas and their negations. It is easy see that you can also drop any atomic formulas in which $x$ is not actually used. In this case, this tells you that $\varphi$ is equivalent to a formula of the form
$$
\left(\bigwedge_{i\in I_1} x=y_i\right)\land \left(\bigwedge_{i\in I_2} x\neq y_i\right) \land \left(\bigwedge_{i\in I_3} x\sim y_i\right)\land \left(\bigwedge_{i\in I_4} x\not\sim y_i\right).
$$
Now:
- If $I_1$ is nonempty and ${i_0}\in I_1$, then $\exists x \varphi(x,\bar y)$ is equivalent to $\varphi(y_{i_0},\bar y)$.
- Otherwise, if $I_3$ is nonempty, then it is easy to check that $\exists x\varphi(x,\bar y)$ is equivalent to $\left(\bigwedge_{i_1,i_2\in I_3} y_{i_1}\sim y_{i_2}\right)\land \left(\bigwedge_{i_1\in I_3,i_2\in I_4} y_{i_1}\not\sim y_{i_2}\right)$.
- If both $I_1$ and $I_3$ are empty, then $\exists x \varphi(x,\bar y)$ always holds.