Before replacing drives in a computer that Apple did not design for us mere mortals to open, PLEASE post data regarding your current system condition. With proper data we can best advise you witut waiting your money.
History says a slow 2012-2019 21.5" iMac is suffering from the under-spec factory internal mech drive. However, if your computer has a Fusion drive that can be restored to normal function, it wll get write/read speeds well above the SATA SSD internal drive conversion.
To post the data we need, there is a safe, secure way to do that without our playing a protracted game of "20 Questions" with you that could go on for hours or days.
We can quickly and within the confines of these forums help you determine what issues are at play if you use EtreCheck Pro, available here:
https://etrecheck.com/index
The free version will do nicely for this purpose, although the app is worthy of our financial support.
We can see hard data about drive performance, software issues, and RAM usage. Etrecheck is the development of a long-serving and trusted contributor here expressly for displaying information in these forums to help us help you. It will not reveal any personal or secure information.
Please see this excellent user tip on posting long text reports like EtreCheck.
https://discussions.apple.com/docs/DOC-250000211