Do you think both are equally safe? and can you explain a little about the advantages of electrum and bitcoincore?
The current code is completely different from what Satoshi wrote. 13 years have passed during which many changes have occurred.
You can compare Electrum Personal Server vs Bitcoin Core because they both run a full node but Electrum is an SPV and can be compared with wallets like Sparrow.