I'll give you a question, please answer with step-by-step reasoning process.
One of the following sentences is nonsensical. Which one is it?\nOptions:\n- Sentence A: "if you want to get good grades, you'd better study hard"\n- Sentence B: "if you want to get good grades, you'd better have parties"\n

Sentence B
There is no connection between having parties and getting good grades.

.

The answer is Sentence B