Towards the end of Attack of The Clones during the Obi Wan/Anakin/Dooku fight, Dooku uses Force lightning to pick up Anakin and fling him to the side. Then he attempts force lightning on Obi Wan which is easily thwarted on Obi Wan's lightsaber and Dooku says something to the effect
As you can see, my "Jedi powers" are far beyond yours.
I didn't think Force lighting as an attack was used by the Jedi/light side of the Force.
How can these seemingly conflicting things be reconciled? Or is my assumption wrong about Force lightning?