in the broad strokes, flap creates a bit more lift and a lot of drag, there is a reason gliders are very slippery! to minimise drag.
the flap is just another flight control at your disposal, use it as necessary for safe flight, if your falling short in a glide, lose the drag and glide thurther.. of course, at best glide speed, for L/D ratio.