Therefore, a law against the behavior of buying junk food could be enacted, making illegal for Hispanics to buy junk food.
Of course not. Latinos cannot help that they were born Latinos. Homosexuals can help that they engage in homosexual behavior. The law is about behavior.
You also don't seem to grasp that both being born Latino and being born a woman is not a choice.
Therefore, it is unconstitutional to make a law prohibiting woman from performing cunnilingus while allowing men to do it.
It is unconstitutional to make a law prohibiting Latinos from eating junk food while allowing Caucasians to do it.