That is a hard question to answer as some of depends on how you use the iMac and whether it is easy to replace the SSD on this iMac. I don't recall if the SSD on this iMac requires removing the Logic Board. Apple will only replace the original hard drive with another similar hard drive and will not perform any custom upgrades. Sometimes an AASP may perform some custom upgrades using third party drives.
If the internal hard drive does not interfere with an external boot drive, then using an external USB3 SSD would be the easiest option. However, with the number of bad blocks I'm concerned whether the failing internal will cause problems (if not now, then perhaps in the near future as the failure gets worse). There is a slim possibility you can erase the internal hard drive and create an "fstab" entry to prevent the internal hard drive from being mounted automatically when booting to an external SSD which may prevent or perhaps minimize the chances of the failing internal drive from interfering with an external boot drive.
It is difficult to open up an iMac and work on it as the Display Assembly is heavy & delicate and the cables are hard to see and connect as the connectors are really fragile & easily damaged. There is very little room for your hands. You can check out the repair/upgrade guides, but keep in mind those videos do make it look easy, but it is more difficult than it looks. OWC has some upgrade videos on their website.
If you are going to install a larger SSD to replace the failing hard drive, then that will give you two internal SSDs (not sure what you would do with the small original Apple 120GB SSD. Removing the failing hard drive and replacing the original Apple 120GB SSD with a larger & faster OWC Aura SSD is an option as well, but it may require removal of the Logic Board which is a major event increasing the risk of damaging the Logic Board or one of many fragile connectors. While an OWC will technically be significantly faster it depends on your work load & how you use the computer whether you will actually notice a difference in speed.
Here is the OWC page for SSD upgrade options for your iMac and the page also includes videos for installation (iMac 14,2):
https://eshop.macsales.com/shop/ssd/owc/imac-27-inch/2013-2019
Of course you can have Apple or an AASP replace the failing hard drive with another Apple hard drive so you can continue using a Fusion Drive setup. Keep in mind a hard drive will likely fail again at some point. While an SSD can fail at any time an SSD should last for a longer time.