In the presence of a disclination line, inclusions within an aligned nematic liquid crystal (LC) are first attracted and ultimately trapped in it. The kind of orientational distortion created by the inclusions is fundamental in determining the trapping. In the present work, we observe differences in the trapping behaviour, onto a ½ defect line in a nematic LC, of two types of particles both elongated but different in their actual geometry. Even if both types have cylindrical shape, aggregates of Mo6S2I8 nanowires (rod-like shape) and multiwall carbon nanotubes (tubular shape, i.e. hollow) trap differently although still due to deformations induced in the LC director field. Attractive forces are stronger on elongated bundles of nanowires than on similarly sized bundles of multi-wall carbon nanotubes. The reason is the difference in the attraction forces originating from different types of distortions of the LCs. The hollow and the full cylinders are not homotopically equivalent and this inequivalence holds also for the liquid crystal around them. The nanowires induce defects in the LC close-by their surfaces as shown for microrods, topologically equivalent to spheres. In contrast, multi-wall carbon nanotubes, being hollow, do not form defects close to their ends. However, the tubes are strongly bent and the strong planar anchoring of LC at the surface induces deformation in the LC enabling attraction forces with the defect line. HiPco single wall carbon nanotubes could not be trapped because their bundles looked much straighter and smaller than the ones of MWCNTs and thus neither defects nor standard strong deformations are expected. In conclusion, even if the shape of both types of particles is cylindrical, the topological difference between rods and tubes has profound consequences on the physical behaviour and on the presence and type of defect-mediated nematic attraction forces.