“My comments were meant to encourage all candidates to apply for the position and not meant to exclude anyone”
That is a lie.
White people are encouraged to apply for the position even though they will likely be passed over.
Even private companies try to preserve the illusion of a transparent application process that does not discriminate.