Using a wedge on a green is a legal shot in golf. Seriously damaging greens with it, however, will get you removed by the course.
While you can physically drive a golf cart on a green in real life it is not allowed by courses and likewise will result in your removal from the premises. It also has nothing to do with the actual play of the game.
Very poor comparison, 27stitches.