Rhydon is better than Golem if you want a ground attacker
However regarding to your question, unless i dont have anything to use the TM, i would if i needed or wanted to have a rock attacker because as rock attacker golem is pretty solid but needs both quickmove and charge move rock attacks
and have to take into consideration your biome, in mines i can farm geodudes so easily that i would just try to get a rock golem insteand of using a TM on him, especially when i haven received a single tm in 10 raids