I would screw it and not nail it and even then you might still get some problems with noise.
And I would avoid going through the metal. You can get through the wood there.
As the ducts heat up and cool down with your heating system they can sometimes make annoying sounds (especially at night) as they expand and contract around things they touch.
Screws can sometimes help.