That's really a narrow-minded view on the scientific method. While it's true that the process of carrying out an experiment should (at least in theory) be free of human biases, the reality is that bias pervades science just as much as any human endeavour.
Even if you manage to completely get rid of biases in the actual experiment, what we choose to study, how the study is structured, and how we interpret the results will be subject to our biases. Science doesn't "care if you're black, white, trans, bi, or toxically masculine" because it doesn't "care" about anything. It's the fallible humans carrying out science that choose what to care about and investigate.