Both of these devices are fueled by the same processor, the Snapdragon 8 Elite for Galaxy. That is essentially a slightly overclocked variant of the regular Snapdragon 8 Elite from Qualcomm.