I bought 4 single 16GB 3600Hz CL18 "For AMD" sticks for my 12400, since a 4-pack or even pair were not available. Shopkeeper was adamant that it would not work since 12400 only does 3200Hz. Ignored him, went home, installed and sure enough it would not POST if I enabled XMP for 3600Hz. Would only work at stock 3200Hz.
Went back to the shop for a replacement, he was smug about being right. I showed him one of the sticks was from a different batch and that was not playing well with the others. They would OC perfectly if the offending stick were removed.
Edit: Got it replaced with one from the same batch as other 3 and they all ran fine @ 3600Hz thereafter.
TLDR: RAM is RAM. GPU is GPU. They are designed to certain standards that ensure universal operation. The only limitation is certain motherboards don't play well with certain RAM models. Refer to the QVL (Qualified Vendor List) on the mobo's support website for a full list of modules that are tested and confirmed to be working. Others may work too, just that it isn't confirmed (like in my case)
If the sticks are on your motherboard qvl, they will most likely work at rated overclock speeds.
Not sure if it's fine now in DDR4/5 era, but during DDR2/3 days there were sufficient differences in memory controllers between AMD and Intel, that would render the system being unable to post with the offending ram sticks. Amd typically were more "compatible" with out of spec stuff, like extra column address bits, x4 density chips.
Checked my AMD only ram again, it's an 1Rx4 module, one rank 16 x4 wide chips, which is not supported on Haswell consumer platforms, supporting only 1Rx8 and 2Rx8 chips. x4 chips were never in spec for consumer platforms and were used by server dimms, which I assume the Chinese sellers managed to salvage and repackage into consumer "for amd" sticks.
tldr: Ram is ram, unless it's suspiciously cheap and sold by no name sellers, with additional conditions added. Sorry for the OT reply.