I'd rather go home = I would prefer to go home.
I'd better go home = It would be a better choice for me go home OR I should go home OR I suppose I must go home.
Note that in your title "x" doesn't mean anything. You can use "vs" as a short form of "versus", or you could have called the thread "had better and/or would rather".
Student or Learner