It's more safe
In what way is it more safe? Safe is a relative term, and what is safe for one person is not always safe for another. For many people, a light wallet such as Electrum is MUCH safer than a full node such as Bitcoin Core.
it has some functions that light wallet don't have (replace-by-fee for example)
I'm pretty sure Electrum has Replace-by-fee.
and also if you're skilled in crypto you can compile your own wallet with functionality that you need.
What functionality do I need that Electrum doesn't already supply? Isn't Electrum an open source project? Can't I change the code of Electrum for my own purposes if I want to?
You have the full blockchain and you validate your own transactions, your BTC addresses do not leave your wallet and so doesn't your tx. In an SPV wallet, they are sent to someone else's node. Luke Dash JR has very good critiques on SPV wallets and how using your own node to transact is the only way to be using 100% bitcoin.
If you're not using a full node for your wallet, you're not using Bitcoin, and won't get the benefits Bitcoin provides over fiat currency. You might as well be using PayPal in that case, except with a random anonymous person in place of a regulated company...
So, always use a full node. – Luke-Jr
If you only scan the blockchain then you don't know it's actually valid, and you are not secure. You are then trusting the random anonymous person to have validated it for you, and if they haven't, you may be trusting invalid blocks and not actually receiving payments you think you are. Having the wallet keys locally doesn't help if those keys don't really control any bitcoins. So sorry, you're wrong: a full node you control is absolutely needed to be secure and get Bitcoin's benefits. – Luke-Jr
https://bitcoin.stackexchange.com/questions/52148/should-i-use-a-full-node-as-my-main-wallet/52238Im not saying SPV aren't a good way to start for newbies, but consider running a full node eventually.