I'm surprised that in 2026 this is still true.
You could easily fit a little microcontroller on the die of each RAM chip which reports its make/model/manufacturing date, capacity and capabilities, can be triggered to run self-tests, etc. If they aren't doing that yet, I'm surprised that they aren't.