Is this code likely to slow down my product page?

yes this will make some minor differences does use split two-time use one loop and set default selected as the index 0 else in item In select option

{% for product in collections.frontpage.products %}
  {{ forloop.index0 }}
{% endfor %}