If they're both the same CP then the Golem will have the higher CPM * attack value, since Snorlax's high CP is a result of it's high stamina.
Even if they were the same level, where Snorlax would have higher CP, the Golem should do more damage due to it having STAB on both moves and a higher base attack stat and Lick is basically only good for building energy.