In Tehillim 115:6 it is written:
הַשָּׁמַ֣יִם שָׁ֭מַיִם לַה וְ֝הָאָ֗רֶץ נָתַ֥ן לִבְנֵי־אָדָֽם
Translation: “The heavens belong to the LORD, but the earth He gave over to man.” (Source: Sefaria)
In Devarim 10:14, it says:
הֵ֚ן לַה אֱלֹהֶ֔יךָ הַשָּׁמַ֖יִם וּשְׁמֵ֣י הַשָּׁמָ֑יִם הָאָ֖רֶץ וְכׇל־אֲשֶׁר־בָּֽהּ׃
Translation: “The heavens to their uttermost reaches belong to the LORD your G-d, the earth and all that is on it!” (Source: Sefaria)
Further, in daf 5 of Sukkah it says that the first pasuk from Tehillim means that HaShem gave the earth to humans as their domain.
So how do we understand the pasuk from Devarim; are they any commentaries that explain how we can differentiate the two pasukim (among others that say HaShem controls the earth.)