...........which would be better 8gb dram or 4gb dram and 16gb Intel
If they both have old-fashioned mechanical drives then there's probably not a lot in it.
4GB isn't really enough RAM nowadays but the Optane memory will of course help speed things up. Ideally, 8GB of RAM with the Optane Memory will be best. Is there any chance of you upgrading that 4GB model with more RAM? Unfortunately that's not always possible with new laptops.
Or, if you're not interested in the new 'n' shiny Intel Optane thingy then get a laptop with 8GB of RAM and an SSD drive.