It is permissible to recite the same surah in both rak’ahs
It is narrated from Mu’adh ibn Abdullah al-Juhani (may Allah be pleased with him) that a man informed him that he heard the Messenger of Allah ﷺ recite إذا زلزلت …. in both rak’ahs of the Fajr prayer. (The narrator says:) I do not know whether the Prophet ﷺ forgot, or whether he recited it deliberately.
Reference: Hasan: Sahih Abi Dawud: 730, Kitab al-Salah, Bab al-Rajul Yu’id Surah Wahidah fi al-Rak’atayn, Abu Dawud: 816
(Ibn Hajar, may Allah have mercy on him) The apparent meaning is that the Prophet ﷺ did this deliberately, in order to provide evidence for this sunnah.
Reference: Al-Mir’at: 177/3