I'd give two nights to Granada. That's only one full day, and the Alhambra takes a lot of time. There are other worthwhile sights there too, of course, and you'll have at least another partial day. I'm a big fan of the Mezquita in Cordoba, would give it at least several hours, and there are other worthwhile sights there too. (But not the hokey Museum of Andalucian Life at the far end of the bridge. Walk out on the bridge to see the river and the distant view of the city, then turn around.) That suggests a night in Cordoba to give you additional time there.
Cordoba could be a midday stop between Granada and Sevilla, especially if you'd rather not change hotels, There are some recent threads about luggage storage at or near the station, which you'll want if you're not spending the night. But I'd vote for option 2 on your list.