Both than and rather than are correct and sound natural. Also, the to on the second infinitive is optional. It is better to stay (rather) than (to) go.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.