From yuggib's answer: "…we consider physically meaningful only wavefunctions such that there exist a continuous and differentiable representative in its equivalence class. However, also this requirement is not physical."
Not quite. A set of countable pointwise discontinuities may be tolerable, at least at first sight, but there is actually a very good physical reason why wave functions are generally required to be continuous and differentiable, even under typical assumptions on the asymptotic behavior: the average energy, in particular the kinetic energy, may become infinite or undefined. A very simple counter example shows why.
Consider a (non-relativistic) 1D wavefunction completely confined to the positive semiaxis, with a sharp wavefront at the origin, for instance
$$
\Psi(x) = \theta(x) \psi(x), \;\;\; \psi(0) \neq 0
$$
where
$$
\theta(x) = \left\{\begin{array}{c}1, \; \text{for}\;x\ge 0 \\0,\;\text{for}\;x<0\end{array}\right.
$$
is the Heaviside step function and $\psi$ is square integrable, with standard behavior for $x\rightarrow \infty$ (see the related question pointed out by knzhou). The discontinuity poses no problem for normalization, since we can always demand
$$
\int_{-\infty}^\infty{dx\; \Psi^*\Psi} \equiv \int_{-\infty}^\infty{dx\; \theta(x) \psi^*\psi} = 1,
$$
neither does it interfere much with the average position or momentum, which generally turn out to be finite as long as $\psi$ behaves reasonably at infinity:
$$
\langle \Psi | {\hat x}|\Psi\rangle = \int_{-\infty}^\infty{dx\;\theta(x) x|\psi|^2} < \infty
$$
and
$$
\langle \Psi | {\hat p}|\Psi\rangle = -i\hbar \int_{-\infty}^\infty{dx\; \theta(x) \psi^* \frac{d}{dx}\left( \theta(x) \psi \right)} =
-i\hbar \int_{-\infty}^\infty{dx\; \left(\theta(x) \psi^* \frac{d \psi}{dx} +\frac{1}{2} \psi^*\psi \frac{d\theta}{dx}\right)} = \\
= -\frac{i\hbar}{2} \int_{-\infty}^\infty{dx\; \theta(x)\left( \psi^* \frac{d \psi}{dx} - \frac{d \psi^*}{dx}\psi \right)} = \int_0^\infty{dx\; \theta(x){\mathcal J}(x)} < \infty
$$
Note that in the last integral above ${\mathcal J}(x) = -\frac{i\hbar}{2}\left( \psi^* \frac{d \psi}{dx} - \frac{d \psi^*}{dx}\psi \right)$ was identified as the local probability flux, which conveys a nice physical interpretation.
But regardless of any asymptotic behavior, things are very different for the average kinetic energy, since
$$
\langle \Psi | \frac{{\hat p}^2}{2m}|\Psi\rangle = \int_{-\infty}^\infty{dx\; \Psi^*(x) \left(-\frac{\hbar^2}{2m}\frac{d^2}{dx^2}\right) \Psi(x)} = -\frac{\hbar^2}{2m} \int_{-\infty}^\infty{dx\; \theta(x) \psi^*(x) \frac{d^2}{dx^2}\left( \theta(x) \psi(x) \right)} =
$$
$$
\frac{\hbar^2}{2m} \int_{-\infty}^\infty{dx\; \frac{d}{dx}\left[ \theta(x) \psi^*(x) \right] \frac{d}{dx}\left[ \theta(x) \psi(x) \right]} = \frac{\hbar^2}{2m} \int_{-\infty}^\infty{dx\; \psi^*\psi \left( \frac{d\theta}{dx}\right)^2} + \text{finite terms} = \frac{\hbar^2}{2m} |\psi(0)|^2\delta(0) + \text{finite terms}
$$
So a sharp wavefront discontinuity, with $\psi(0) \neq 0$, automatically means an uncomfortable infinity in kinetic energy, and in general means bad news for any observable involving 2nd order or higher derivatives.
To answer the question: the average momentum doesn't necessarily blow up in the presence of discontinuities, but the kinetic energy and any averages involving higher derivatives do pose a problem. The asymptotic behavior of the wave function in momentum space must be such that relevant observables involving position derivatives have finite averages. This in turn implies that discontinuities of the type discussed here must be smoothed out.