A comparison between the macroscopic approach and the generalized kinetic approach in extended thermodynamics