E phraim didn’t drive out the Canaanites who lived in Gezer, but the Canaanites lived in Gezer among them.
Nor did Ephraim drive out the Canaanites who dwelt in Gezer; so the Canaanites dwelt in Gezer among them.