Or, heck, if you just need to bypass the Golem, rather than destroying it, you could cast an image-, fog-, or invisibility-based spell and sneak away, fly out of its reach, cast Grease and walk away as it slips and slides, teleport out of its line of sight, or any of a number of other things. Most of the standard Golem varieties are not particularly threatening; they are unintelligent and tend to lack options that aren't "walk up and punch something."