There was a seperation between Prophet Moosa a.s and his mother, and there was a separation between Prophet Yusuf a.s and his father.
Prophet Moosa (a.s) was united with his mother very, very soon.
Whereas, Prophet Yusuf (a.s) was united with his father many many many years later.
One can’t say that one was more beloved than the other in the sight of Allah swt just because the union comes sooner in one case and delayed in another!
Both were the chosen ones, the messengers of Allah (swt), in fact in case of Prophet Yusuf (a.s) even his own father Yaqub (a.s) was also the chosen one and the Prophet of Allah (swt) but we know their separation ended after many years.
Allah swt knows best His Hikmat, kiske liye kia behtar tha aur hai, He Al Aleem knows the best!
O’ you struggling souls, Trust Him and don’t belittle your duas to Him. He is Al Mujeeb, The Responder of duas and pleas and if they are not answered as it is, there may be a khair in it, which He alone knows the best!
Allah is Al Azeem.