How to make loadByProperties or entityQuery case sensitive for field value
It was this long issue thread, they add sensitive case support to entityQuery.
So instead of = operation you can use = BINARY or instead of LIKE you can use LIKE BINARY.
Try this:
$entity_ids = \Drupal::entityQuery('node')
  -&gt;condition('field_myfield',$value, '= BINARY')
  -&gt;execute();