I recommend display port as it may sorry higher resolutions than the Macbook HDMI connection.
Some HDMI connections will only support 1920x1080.
Do either of your laptops have HDMI? I think the 2010 only has display port and the 2017 doesn't have HDMI.
What connections are on the monitor?