First one should be ok.
The second one says: Display Port to VGA adapter (however picture is for HDMI model).
I wouldn't order the product, if product name and picture doesn't match.
None of 5 MSI GTX 1050ti models have analog output. So - without converter, no - you cant use VGA monitor.
You'd need active HDMI to VGA converter. Something like this:
https://www.amazon.com/Cable-Matters-Active-Adapter-Micro-USB/dp/B007SM7O2U
First one should be ok.
The second one says: Display Port to VGA adapter (however picture is for HDMI model).
I wouldn't order the product, if product name and picture doesn't match.