No, a seven-year-old Dell will not compare to a current HP machine for gaming. The gap is simply too wide across every component that matters.
A new system supports far more RAM, runs a much faster processor, and even its integrated graphics chip is likely to outperform the best dedicated card available seven years ago. That last point surprises people, but integrated graphics have improved enormously.
If gaming is the goal, the new machine is the only sensible choice of the two, and adding a dedicated GPU would push it further still.