When making a comparison, it is good style to have all the parts in the same gammatical form. I would prefer to make a copy than to take this whole book home. (yours was OK, but repeating the infinitive particle makes it a bit clearer) I would prefer to make a copy rather than to take this whole book home.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.