The answer is pretty simple, RAM is always going to be faster because its first in the chain.
Whenever something needs to be stored temporarily, it first is going to be stored in RAM. If this is not possible, and virtual ram has to be used, a SWAP file will be used, which can be on your SSD. Windows will try to keep using the RAM though, so it will swap background stuff out of RAM to the swap file. If you want to use one of those programs, it is first being swapped back into RAM before accessible again.
Now, when something never leaves RAM its always faster. The speeds may be marginal, but its faster nevertheless.
If you have slow RAM and super fast SSD that outperforms the RAM by a million, it will simply appear that the SSD is not that fast, because its still waiting for the RAM. Note that slow ram is still very fast and it is unlikely to notice. But really fast RAM which is an option too, is still by far the best choice, and the more you need, the more RAM you should get.