Local unitary operations allow for a unifying approach to the quantification of quantum correlations among the constituents of a bipartite quantum system. For pure states, the distance between a given state and its image under least-perturbing local unitary operations is a bona fide measure of quantum entanglement, the so-called entanglement of response, which can be extended to mixed states via the convex roof construction. On the other hand, when defined directly on mixed states perturbed by local unitary operations, such a distance turns out to be a bona fide measure of quantum correlations, the so-called discord of response. Exploiting this unified framework, we perform a detailed comparison between two-body entanglement and two-body quantum discord in infinite XY quantum spin chains both in symmetry-preserving and symmetry-breaking ground states as well as in thermal states at finite temperature. The results of the investigation show that in symmetry-preserving ground states the two-point quantum discord dominates over the two-point entanglement, while in symmetrybreaking ground states the two-point quantum discord is strongly suppressed and the two-point entanglement is essentially unchanged. In thermal states, for certain regimes of Hamiltonian parameters, we show that the pairwise quantum discord and the pairwise entanglement can increase with increasing thermal fluctuations.