Equality forces because its proposed value is at most . The random variable is nonnegative and has expectation zero, so almost surely. On it equals the strictly positive variable , making that event null. On it equals , forcing there. Hence
This is the equality in Markov's inequality under strict positivity. The reasoning even works without the discreteness assumption.