Rhythm or lead guitar?
It really can go either way. If you write a lead that has a strong melody line, that can start you off in the direction of a progression to go with it. I think most people tend to write the rhythm first, but there are no absolutes. People write songs in a million differerent ways