The 'ram is ram' point applies strictly only to system ram. If ram is on a dedicated GPU, that's distinct and used differently.does it means that a MactIntel with 16GB RAM +GPU 8GB RAM has more available RAM than a MacM1 with "only" 16RAM for both CPU and GPU?
So the answer (in my view) is that the 16gb + 8gb GPU should have a bit more system ram available compared to the straight 16gb / no dGPU. But the key thing to keep in mind is it absolutely is NOT a one-for-one substitution - because for the most part the system can't use dGPU ram as a direct substitute for system ram. (And as leman put it above, because they have different uses, there will often actually be duplication of the two types and copying/transfer between the two). That might mean an 'extra' [some number] of system memory available/free, but it will always be less than the '8gb' amount of dGPU ram (how much will depend a lot on what you're doing - perhaps a big delta for gaming, not very much for general computing).
In other words: You can't just add different types of ram together, even if they're both a type of ram. 8x + 8y does not just add directly to equal 16x. 16 + 8 ram/dGPUram here does not just add up to 24.
Similarly your system can use the SSD as a type of memory (call it logical memory if you want, or swap memory), but it doesn't mean that you can say your system has 18gb ram + 128 gb ssd = 146 gb 'ram.'