Both world No 2 Iga Swiatek and No 3 Elena Rybakina came from a set down to rally for wins, keeping their title hopes alive.