What is the difference between $variables['elements']['#node'] and $variables['node']?
See the code executed in template_preprocess_node(), the function called before the preprocess functions implemented by modules for a node.

$variables['node'] = $variables['elements']['#node']; 


So, yes, $variables['node'] and $variables['elements']['#node'] contain the same value.