Forum:Deathly Hallows vs. Horcruxes

I remember Dumbledore saying that Harry could've used the deathly hallows to beat Voldemort, but that he wanted Harry to destroy the horcruxes instead. I was wondering how could Harry defeat Voldemort with the deathly hallows without first destroying the horcruxes? -Josiah Williams