There are two kinds of memory: memory where the structure and addressing and continuity clearly demands a number of cells that is a power of two (or at best a small multiple of such), and "bulk" memory where it doesn't. Flash memory is in the middle since the raw cell counts clearly are powers of two but wear management requires setting some of that aside and at least some consumer SSDs routinely store non-binary values in a cell.
The primordial bulk memory are hard disks. Long before prefixes "Ki" and "Mi" were introduced for referring to 1024 and 1048576, respectively (\$2^{10}\$ and \$2^{20}\$, respectively), memory sizes in binary computers were measured in terms of powers of two. This is still the case for RAM: nobody states having a computer having 17GB of RAM even when the exact number are 17179869184 bytes. Flash memory capacities are similarly advertised with powers-of-two based units of raw capacity since "32GB" (actually GiB) as the power-of-two number sounds better than a net bulk size after level wear management of "30GB" or similar.
Hard disk manufacturers were the first to realize that stuff looked better in powers-of-ten based unit multipliers, leading to a long intermediate period where some manufacturers boosted their sizes by diverging from what was in common use (annoying if you try allocating enough sectors to swap out 16GB of RAM).
Now of all current and historical perversions of units, probably the most insulting one is the 1.44MB floppy disk which has an actual size of 1440KiB.
To return to your original question: RAM is consistently specified in terms of unit multipliers based on powers of two as of now, even if the ostensibly more correct "Ki", "Mi", and "Gi" prefixes are not at all consistently employed in marketing and documentation instead of the historic "k", "M" and "G" prefixes.