Conditionally hide the node comments via preprocess function
$variables['content']['comment']['#access'] = FALSE;


That should work, assuming you use the default comment field named "comment", otherwise whatever you named it. Comments are just a field, nothing special about them.

You can also check it directly in twig and not print it there.