Very generally speaking, a lighter, less dense piece of wood will tend to be more resonant than one less so, regardless if one is comparing two pieces of the same species or different ones. That being said, the operative word in the sentence is "tend", as no two pieces of wood are exactly alike, sometimes when even cut from the same tree or rough slab.
"does the resonance of the body depends rather from piece to piece than wood to wood?" Yes to all the above.
If the question revolves around your wanting to ascertain what wood choice to make for a Warmoth build, you have numerous options:
1.) Select a body of your wood choice that is "very/ultra light", typically this goes for a bit of a premium.
2.) Warmoth usually has mahogany and swamp ash choices available in the "very/ultra light" category, mahogany is always a good choice. Adding a maple or other exotic lam top to "pretty it up" isn't going to change the resonance factor of the body in any appreciable way.
3.) There are multiple choices for chambered hollow bodies like the Strats or Teles or semi-hollow bodies like the L5S or Thinline, these can be even more resonant, even allowing for heavier/denser woods. A couple of my best sounding/resonant builds are a hollow Black Korina VIP and a semi-hollow Black Korina L5S.