to the extent race exists as a characteristic (eg skin melanin, extent of any eye folds) it can be measured. DNA can also give some indication. Sexual orientation, true, needs consciousness. But which version it is, it won’t mean that person demands to be treated as the other sex.