Does Urea have a higher density compared to Ammonium Nitrate?

No, not in respect of nutrient in each Tonne.

Each Tonne of urea contains 920 units of N (460 kg/N) compared to 690 units of N (345 kg/N) in a bag of AN.