@gregeganSF I definitely found that Mathematica seemed unable to analytically compute some contour integrals that I could solve by hand without much difficulty when the integrand had a nontrivial structure of branch cuts. On the other hand, that was probably several Mathematica versions ago.