Both of those examples invalidate and/or endanger people though.
For example, repeatedly asking how many genders there are ignores the obvious 'its a continuum' and implies its a finite number. The person asking almost always then goes on to push that there's two because that's "how its always been" and then folks can't get gender affirming care are are essentially classified as "nonexistent".
The right, being rooted in conservatism, loves to ressurect old arguments in the name of " just asking questions" and have the rest of us redo the battles of old. For example, race science is discredited pseudoscience, there's no need to keep bringing it up unless you're trying to use it for, imo nefarious, political means.