Rainbow cycles vs. rainbow paths