Is the world that used correctly in this sentences?

The class that I’m doing best is in algebra

A. Yes

B. No

B. No

A. Yes

B. No

"The class that I’m doing best is in algebra" is not grammatically correct.

The correct sentence would be: "The class in which I’m doing best is algebra."