If it's a production circuit that is stable (not undergoing revisions), you could tie the unused inputs directly to ground. But if it's a prototype, using a resistor (or a jumper) makes it possible to remove it if you need to use one of the unused gates in the future, instead of having to cut traces on a PCB.