the specs of the iMac are
3.0GHz 6-core 8th-generation Intel Core i5 processor
Turbo Boost up to 4.1GHz
8GB 2666MHz DDR4 memory, configurable up to 32GB
1TB Fusion Drive¹
Radeon Pro 570X with 4GB of GDDR5 memory
Two Thunderbolt 3 ports
Retina 5K 5120-by-2880 P3 display
the specs of the MacBook Pro 16 are
2.6GHz 6-core 9th-generation Intel Core i7 processor
Turbo Boost up to 4.5GHz
AMD Radeon Pro 5300M with 4GB of GDDR6 memory
16GB 2666MHz DDR4 memory
512GB SSD storage¹
16-inch Retina display with True Tone
Touch Bar and Touch ID
Four Thunderbolt 3 ports can you please tell me which one has a better processor and graphics card.