For any graph G, the chromatic polynomial of G is the function P (G, m) which counts the number of proper m-colorings of G for each positive integer m. The DP color function P DP (G, m) of G, introduced by Dvořák and Postle in 2018, is a generalization of P (G, m) with P DP (G, m) ≤ P (G, m) for each positive integer m. Let P DP (G) ≈ P (G) denote the property that P DP (G, m) = P (G, m) holds for sufficiently large integers m. Kaul and Mudrock have showed that there are graphs G for which P DP (G) ≈ P (G) holds and there are also graphs G for which P DP (G, m) < P (G, m) for sufficiently large integers m. In this article, we give a necessary condition and a sufficient condition for P DP (G) ≈ P (G) to be true. For each edge e in G, let ℓ(e) = ∞ if e is a bridge of G, and let ℓ(e) be the length of a shortest cycle in G containing e otherwise. We first show that if P DP (G) ≈ P (G), then ℓ(e) is not even for each edge e in G. We then prove that P DP (G) ≈ P (G) holds for every graph G which contains a spanning tree T such that for each e ∈ E(G) \ E(T ), ℓ(e) is odd and e is contained in a cycle C of length ℓ(e) with the property that ℓ(e ′ ) < ℓ(e) for each e ′ ∈ E(C) \ (E(T ) ∪ {e}). This result generalizes a recent result due to Mudrock and Thomason that P DP (G) ≈ P (G) holds for each graph G which has a dominating vertex.