Inertia of an object depends on its size, shape and mass.
Density of a body depends on its shape and size