If $X_1, X_2$ are discrete random variables then
$\begin{align}\Bbb P(X_1{=}s\mid X_2{=}s) & =\dfrac{\Bbb P(X_1{=}s, X_2{=}s)}{\Bbb P(X_2{=}s)} \\[1ex] & = \dfrac{\Bbb P(X_1{=}s, X_2{\leq}s)-\Bbb P(X_1{=}s, X_2{<}s)}{\Bbb P(X_2{\leq}s)-\Bbb P(X_2{<}s)}
\\[1ex]&=\dfrac{\Bbb P(X_1{\leq}s{,}X_2{\leq}s){-}\Bbb P(X_1{<} s{,}X_2{\leq} s){-}\Bbb P(X_1{\leq}s{,}X_2{<}s){+}\Bbb P(X_1{<}s{,}X_2{<}s)}{\Bbb P(X_2{\leq}s){-}\Bbb P(X_2{<}s)} \end{align}$
If they are integer-valued random variables, where $F_{1,2}(,)$ is the joint CDF of $X_1,X_2$, and $F_2()$ is the CDF of $X_2$, then :$$\begin{align}\Bbb P(X_1{=}s\mid X_2{=}s) &=\dfrac{F_{1,2}(s,s)-F_{1,2}(s-1,s)-F_{1,2}(s,s-1)+F_{1,2}(s-1,s-1)}{F_2(s)-F_2(s-1)}\end{align}$$