Attacking the planet where some Maquis were hiding was a story with interesting moral dimensions, it being retaliation in kind for what the Maquis did, their refusal to be relocated to any available pleasantly habitable planet, defending their settlements as if they were land passed down from their great-great-grandparents instead of just settled about 20 year ago, etc.
Punching Q, on the other hand, was just a stupid thing to do. It has no more effect on Q than an ant trying to punch a picnicker. He was lucky Q just laughed it off instead of taking offense.