(I FIGURED IT OUT) Step condition with matrix, when and multiple permutation

I have a matrix like this:

matrix:
  include:
    - SITE: site1
      ENV: site1_env
    - SITE: site2
      ENV: site2_env
    - SITE: site3
      ENV: site3_env

I would like to skip a step in one of the permutations like this:

install_prod_db:
  when:
     matrix:
       SITE: [site1, site2]

But only works with one SITE (i.e SITE: site1)

Is the only solution to duplicate the step for each permutation?

I found a solution/workaround by setting the same variable in each permutation and then setting the condition on that