Modern DRAM chips (already for some 30 years or so) have internal error correction. So they have spare cells (e.g. some 10%) and do internal error correction, hidden from the user. So they can correct a certain fraction of bit errors - this can be be permanently broken cells or just random (e.g. from radiation) errors. It is more like normal that a RAM chip contains some bad cells, but one would not really notice it. In the groups with broken cells there may be no more error correction, but this would be more like a small fraction (e.g. a few ppm - so maybe still 100s of defects) of the cells only. At least server RAM has an addition layer of error correction also for the bus and visible to the CPU.
It is just not feasible to do excessive testing to also find partially faulty cells. So the system has to be somewhat fault tolerant.
There may be additional making of faulty cells, but the main part is having real time error correction with more data saved. CD ROM uses a similar system.
I would not really expect that they use partially broken chips with reduced capacity. This may happen if for some reason they produce a large batch of them, but this would be rate and more likely end up in very low cost cards, maybe sold in India or China.
SSD Memory / Memory sticks may use partially disabled / broken parts, as they may need the software to handle a file systen or similar anyway. So it is very little effort and even the testing can be done by the product itself. So there is very little extra effort.