Most internet forms that ask for gender have absolutely no reason to care about that information. Basically, biological sex should matter to healthcare professionals, and gender should matter to virtually nobody. So yes, "simply remove it" should be the answer to this most of the time.