There is no difference in SATA interfaces or mounting/size between the three major drive types and they all work anywhere a 3.5 inch drive can be installed. Electrically a 2.5 inch SATA drive is the same, even the connectors, but there is that difference in physical size. One needs a big hammer to install a 3.5 drive in a 2.5 enclosure 🙂
A NAS drive is optimized for the vibration one finds in multi-bay enclosures and they compromise on performance in exchange for durability, 24/7 operation/ and low power consumption. They are typically 5400 rpms.
A Desktop type drive is optimized for a low stress computer where typically one drive is installed and used part time. They run the gamut in performance and are generally made for a cost target. They don't have all the vibration mitigations a NAS drive has but probably perform better performance wise. These are typically less money.
Enterprise drives are also tuned for multibay high performance high heat 24/7 use case environments. There are few if any performance compromises and offer sophisticated error control and life extending technologies. These typically cost more money and offer the best warrantees. These are now at least 7200 rpm, some 14000 rpm plus.
The advice is to never put a desktop type drive in a multi-drive enclosure, otherwise its your call.