Both exercises are good. Both ways, you can do slightly better in the other exercise. However, I prefer cycling since it is less hurting for my legs and I enjoy the speed I can get out from it. Also, when cycling, you can go for longer distances than running.