بسم الله الرحمن الرحيم
Both the names are good. However, the second name i.e. Muhammad Hamdan is far better. Also Abdullah, Ubaidullah, Abdul Muqtadir, Haris, Abu Dujanah are good names. You may choose any of them.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.