Comparison between equations-of-motion and green's function methods for the particle-hole response function