How will we reconcile this Pasuk, which states that Yisrael should not ascribe their inheriting Eretz Yisrael to their own righteousness and to the evil of the seven nations, with Pasuk 5, which does ascribe it to the evil of the seven nations?
Ramban and Rashbam: The Pasuk is saying that they should not ascribe the destruction of the Kena'anim to their evil and their inheriting Eretz Yisrael to their own righteousness, 3 because whereas the first assumption is correct, the second one is not - as the Pasuk goes on to explain.
Seforno: The Pasuk is saying that, upon seeing the miraculous way in which they defeat the Kena'anim and they realize that Hashem is fighting on their behalf, they should not ascribe their victory to their righteousness, in order that they come and inherit the land quickly, because Hashem dispossessed them before us due to their evil. 4
In other words, the 'Vav' in "uv'Rish'as" means 'and', not 'or'.
Ramban: Which explains why He destroyed them, as the Pasuk goes on to explain.
Rashbam: Due to their superiority over other nations.
This is how the Seforno explains "uv'Rish'as ha'Goyim ha'Eileh ... " in this Pasuk - interpreting the 'Vav' as if it had written "Ki".
What is the connection between the current Pesukim and the previous Parshah?
Ramban: The Torah is coming to negate the notion 1 that, having ascertained that Yisrael defeated the Kena'anim due to Hashem's participation, Hashem granted them victory based on their righteousness. And they only inherited it due to Hashem's promise to Avraham. 2
How will we reconcile the current Pesukim, which describe Yisrael as unworthy and stubborn, with the Pasuk above (7:8), which talks about Hashem's love of Yisrael?
Ramban: The current Pasuk is referring to this particular generation, which rebelled against Hashem from the moment they entered the desert, whereas the Pasuk above is referring to Yisrael in general.