At any point in time, a finite amount of time has passed, and the trolley has killed a finite amount of people. The correct track is the one that, at any given time, will have killed fewer people. Unless the trolley speeds up to account for that and always kills n people per second, the top track will result in less deaths over any period of time.