Remember this any time you are ever critical of the special effects in any movie ever.
Lightsabers aren't lasers. And they can actually be set to deflect matter too (EX: Maul using his sabre as a prop, EU instances of deflecting flechettes and such), it's just not part of the default settings.
And to answer the second, by flexing. Duh.