In a given triangle $EBC$ $\ \angle E=90^\circ$, $D\in BC$ such as $ED\perp BC$, $M'$ is midpoint of $BE$, line $CM'$ intersects the circumcircle of $\triangle EBC$ second time in $X$. $A$ is the second intersection of the line $ED$ with the circumcircle of $\triangle EBC$. $K$ is the intersection of $AX$ with the perpendicular bisector of $BX$. Let $K'\in AX$.
Prove that $XK'=2XK\Leftrightarrow EK'\parallel BX$.
This is the missing intermediate step of my solution to this problem.
My attempt: I see in the case of $EK'\parallel BX$ the triangles $BXM'$ and $M'NE$ are congruent ($N=EK'\cap CX$) thus $M'$ is the midpoint of $XN$ and $\triangle XM'P\sim \triangle XNB$ but I'm failing too show that $B,\,K,\,N$ are collinear.
In the case of $XK'=2XK$ $\ \triangle XKP\sim\triangle XK'B$ hence $BK'\parallel XN$ but I'm missing to show $BK'=XN$.
However, if it's more simple to solve the original problem and hence show the desired result (i.e. "the hole in the solution is as large as the solution itself"), you are free to answer the original question instead.
Thank you.

This is a solution to the original problem:
We have $$\angle BAK = \angle BAX =\angle BCX = \angle BOK$$ so $AOKB$ is cyclic. Since $$\angle ABO =\angle AKO =:\beta \implies \angle ACB =\angle OKT = 90-\beta$$
it is enough to prove $\Delta OKT\sim\Delta CAO$ i.e. $\boxed{{d\over y} = {r\over b}}\;\; (*)$
If we multiply these three we get $${da\over ry} = {bx\over a(r-x)}\implies {d\over y} ={rbx\over a^2(r-x)}$$
So $(*)$ will be true iff $$b^2x= a^2(r-x) \iff (a^2+b^2)x = a^2r\iff 4rx=a^2$$
which is true since $ABC$ and $DBA$ are similar.