Joshua 15:63 says:
But the Jebusites who lived in Jerusalem the Judahites could not dispossess; so the Jebusites dwell in Jerusalem beside the Judahites to the present day.
Similarly, Joshua 17:12 says:
Since the Manassites were not able to dispossess these cities, the Canaanites continued to inhabit this region.
But Joshua 23:9 says:
At your approach the LORD has dispossessed great and strong nations; not one has withstood you up to this day.
What gives? Did the Jebusites not "withstand" the Israelites? Note that back in Joshua 1:5, we have
No one can withstand you as long as you live. As I was with Moses, I will be with you: I will not leave you nor forsake you.