Drupal Node Display Main Image or Video not both
This should work:

{% if node.field_video is not empty %}
  {{ content.field_video }}
{% else %}
  {{ content.field_image }}
{% endif %}


If the field is populated with a value, render that field. Otherwise, render the image field.