Will withdrawing from a class hurt my chances of getting into a good college more than failing?

I’m a high school junior who is currently enrolled in a research class. I hate this class. I have no interest in it and have failed at every attempt to enjoy or drudge through this experience. I am half-way through the year, so if I withdraw it would show up on my transcript.

Currently I have a D in that class, where as I have an A in every other class I am taking.

Would withdrawing from this class be worse or better than sticking with it and probably failing it in the end?