The root of "Sod" comes from the word Sodomy. So, on a literal basis, "Sod" is probably worse. Given that in the past, Sodomy was an imprisonable crime in the UK whereas, as far as I am aware, a good old fashioned wank has never been illegal.