I have a question about deriving the coordinate representation of momentum operator from the canonical commutation relation, $$[x,p]= i.$$
One derivation (ref W. Greiner's Quantum Mechanics: An Introduction, 4th edi, p442) is as following: $$ \langle x|[x,p]|y \rangle = \langle x|xp-px|y \rangle = (x-y) \langle x|p|y \rangle. $$ On the other hand, $ \langle x|[x,p]|y \rangle = i \langle x|y \rangle = i \delta (x-y)$. Thus $$ (x-y) \langle x|p|y \rangle = i \delta(x-y). \tag{1} $$
We use $(x-y) \delta(x-y) = 0$. Take the derivative with respect to $x$; we have $\delta(x-y) + (x-y) \delta'(x-y) = 0$. Thus $$ (x-y) \delta'(x-y) = - \delta(x-y). \tag{2} $$
Comparing Eqs. (1) and (2), we identify $$ \langle x|p|y \rangle = -i \delta'(x-y). \tag{3} $$
In addition, we can add $\alpha \delta(x-y)$ on the right-hand side of Eq. (3), i.e. $$ \langle x|p|y \rangle = -i \delta'(x-y) + \alpha \delta(x-y), $$ and $[x,p] = i$ is still satisfied. We can also add $$ \frac{\beta}{\sqrt{|x-y|}}\delta(x-y)$$ on the RHS of Eq. (3). Here $\alpha$ and $\beta$ are two real numbers.
My question is, what is the most general expression of $\langle x|p|y \rangle$? Can we always absorb the additional term into a phase factor like Dirac's quantum mechanics book did?