这个问题中第二个短语would rather to do sth是错误的。would rather后面只能加上动词原形do,而不能加动词不定式to do。

would rather do sth的意思是“宁愿做某事”,如:I would rather stay at home in such hot weather. 这么炎热的天气下我宁愿待在家里。