To maximize the chances of the new RAM cooperating with the old RAM, you want as close to the original RAM as possible. So if the same brand and specs is available, that would be the best option.
To maximize the chances of the new RAM cooperating with the old RAM, you want as close to the original RAM as possible. So if the same brand and specs is available, that would be the best option.