That is frankly, obvious horseshit. It couldn’t possibly be a gamble because you can just trivially differentiate the answer and see if it came out to be the expression in the question.
This is a definite integral. The specific endpoints might allow substantial simplifications that obscure the anti-derivative in question.
This is similar to the way that $\int_{-\infty}^\infty exp(-x^2) dx = \sqrt \pi$. The answer is a constant that doesn't give you any information about the function erf(x).
Remember he was producing the anti derivative/integral and already had the original expression. So all he needed to do is show that when you differentiate the integral answer you get the original question. That’s a lot easier than you’re making out.