Hi,
I have checked that both of them are OOTB with Ribbon Workbench.
The id of the button in Screenshot 1 is "Mscrm.HomepageGrid.contact.Flows.RefreshCommandBar".
The controls it contains are displayed in an expanded form.

The id of the button in Screenshot 2 is "Mscrm.HomepageGrid.contact.Flows.RefreshCommandBar.Flows"
The controls it contains are displayed in an collapsed form.

But in my environment the default is to show only the first button, the one where the controls are all expanded.
Perhaps some customizations have caused both buttons to be displayed in your environment. The function of both buttons should be the same, and you can choose to keep or remove them in whichever form you need to display them, depending on your habits.