Veteran preference question?

I’m conflicted I believe in a return of merit based hiring. How do I make sense of veterans preference during hiring new employees? Would that not be a DEI (Equity and Inclusion) hire? Any help would be appreciated.