Over the life of the computer, a total of read-writes to a hard drive
or an SSD could be depreciating the durability of either drive type.
While RAM chips hold active data for short duration, it isn't read-
written from the SSD or HDD; & that is where applications look for
quick accessible short-term memory. If the computer had, say, a
750GB 7200-RPM rotational HDD, then I'd say upgrade RAM fully.
Usually a slower 5400-RPM HDD of 1TB would drag the Mac down
and even if your computer could run a higher 16GB total, the slow
point would still be this read-write of temporary swap or virtual ram
to the storage drive. While an SSD is faster, the wear factor may be
insignificant if SS drive has adequate reserve over-sampling capacity.
While I've a Mac with dual 1-TB 5400-RPM HDDs factory installed,
I chose 16GB RAM upgrade as that was easier & cheaper than SSD.
And I've been eyeing owc mercury pro SSDs; to replace both HDDs.
Good luck in your choices, in any event...! 🙂