This comparative organizational ethnography examines how two physical science PhD programs, operating under state affirmative action bans, navigate legal compliance while sustaining their commitments to diversity. Drawing on inhabited institutionalism and legal endogeneity, we show how, despite similar policy and disciplinary environments, each program interpreted the law differently and constructed distinctive admissions routines. One program broadened its definition of merit to emphasize commu