What is better with a laptop: 8 GB DDR4 RAM or 20 GB (4 GB DDR4 RAM + 16 GB Intel Optane memory)?
Optane is not a ram, but an unnecessary hard drive booster.
Optane is not RAM, so completely incomparable.
Intel Optane is not RAM.
You can't really compare Intel Optane with RAM now
What is better depends on the intended use.
Optane memory does not replace real RAM, as cache memory for SSD or HDD you can certainly use Optane memory but not as a RAM replacement.
https://www.alza.de/intel-optane-memory-ausfuhrlicher-test?layoutAutoChange=1
If you have a fast NVMe SSD, you won't even feel the difference with an extra Optane module.
The difference between an Optane storage and an SSD then results at most in the way it works.