SSD's are like any component choice when it comes to computing.
There are so many available and so many specs it can be almost dizzying. You havent mentioned what your options are so I'll talk about a couple of pointers here and then you can make maybe a slightly better informed choice.
When choosing an SSD you should bear in mind a few criteria, the first is obvious, capacity. And this has a role to play in both the lifespan of the drive and the performance depending on the technology used. you see some drives can withstand a larger amount of writes of course a larger drive has more circuitry available to write to which can increase the lifespan. If you see a make and model for the drive you can easily go to the manufacturers site and find out these ratings since most happily detail it. If you want the SSD to store your operating system the minimum I'd recommend is 256GB.
The next thing to bear in mind is the type of drive. do you want an NVME or a SATA drive? it's important to note that M.2 drives come in both nvme and M.2SATA variants. This is because not every M.2 interface can fully support an NVME drive and some require a SATA controller. SATA M.2 drives are slower than their NVME counterparts, having said that they are still orders of magnitude faster than traditional hard drives.
With respect to M.2 or PCIe M.2 the difference is pretty straightforward, a PCIe M.2 is the same M.2 drive installed on a PCIe card. that card can be installed in a PCIe slot in your PC. The issue is that some PC's cannot or do not permit you to boot from a storage device in a PCIe slot, you'll need to confirm this yourself for your machine. an M.2 Drive by itself must be connected to an available M.2 socket on your motherboard if it has one available now M.2 is simply a connection standard and can allow the connection of a few different devices, you should check and make sure that your motherboard can host an M.2 storage device and use it for boot purposes if you want to use it as your Operating System drive. I hope this helps.