Prefer to do rather than do表示的是喜欢做前面这件事而不喜欢做后面这件事。它的同义短语prefer doing to doing。 Would rather do than do. would do rather than do.

I prefer stay at home rather than go out.

I prefer staying at home to going out.

I would rather stay at home than go out.

I would stay at home rather than go out.