You can’t leave unused inputs floating, but you might not want to connect them to a power or ground rail either. Digital engineers learned long ago that they should not leave unused inputs unconnected ...