While it might not be discrimination for them to ask about your race in the hiring process, it shouldn’t be asked unless legally necessary. It can be discrimination if there was not a legitimate reason to ask for your race during the interview process.