I think the main difference between the two is that you use окончить to talk about graduating from school or college.

оканчивать университет