A riveting competition ended with one-on-one clashes in both the men’s and women’s races, and with three Kenyans on the women’s podium.