Piezo Buzzer Coil or Resistor oscillator
The inductor stores energy while the transistor is on, releases it when the transistor is off, giving something like twice the supply voltage (peak-peak) across the piezo. 

The resistive version gives a peak-peak voltage that's only equal to the supply.

So the inductive one should be 6dB louder.