Nice computer :-)
Backing up a step, the second drive you linked to is an "M.2" SSD. They cost about the same per GB as the SATA format (the Adata). The major differece: The SATA was designed to be a drop-in replacement for a hard disk in any existing computer. The M.2 is smaller and much faster.
As Davidgo notes, your MoBo (motherboard) may be able to support the M.2. If so, that's definitely the better way to go. Possible gotchas, even assuming the MoBo is identified correctly, are that some motherboards will disable some SATA capability if you add an M.2. You'll want to carefully check for this in the MoBo's manual.
To make life even more complicated, there are several types of M.2. The Samsung in your link is a SATA compatible, which means the even though it (obviously) does not use a SATA connector, it is still limited to SATA speeds. The "NVMe" your board seems to support (it's printed right on the board in one of the pix) is a different, much faster connector. Note the different connector notches in the Samsung NVMe M.2 here:
https://www.amazon.com/dp/B01N8Z82SY/
If your MoBo has the NVMe slot with the correct key & and no SATA disabling (or you are not using the SATA channel which will be disabled - you have a lot of drives in there) then the NVMe will give you a big drive speed boost.