Sometimes you will find passages that are very difficult to reconcile completely...
Read Joshua chapter 10, looking specifically at what happens to Hebron, its king and people.
In v 26 Joshua killed the king of Hebron, along with 4 other kings.
After that we have a day by day account of Joshua's campaign against the 5 cities.
In v 36-37 "
And Joshua went up from Eglon, and all Israel with him, unto Hebron; and they fought against it:
And they took it, and smote it with the edge of the sword, and the king thereof, and all the cities thereof, and all the souls that were therein; he left none remaining, according to all that he had done to Eglon; but destroyed it utterly, and all the souls that were therein.
In chapter 14: 12-13 Caleb comes to Joshua asking for the right to conquer Hebron with surroudings, and have it as his inheritance. Joshua gives him this right...
12 Now therefore give me this mountain, whereof the Lord spake in that day; for thou heardest in that day how the Anakims were there, and that the cities were great and fenced: if so be the Lord will be with me, then I shall be able to drive them out, as the Lord said.
13 And Joshua blessed him, and gave unto Caleb the son of Jephunneh Hebron for an inheritance.
So the king of Hebron was killed twice by Joshua (within days), and the city was wiped out totally once by Joshua and also conquered and its inhabitants driven out by Caleb.
Which account do you reject, or alternatively accept?