Have you ever compared similar Strats - one made of ash, the other alder? I'd be surprised if you couldn't hear the difference!
While I can’t say definitively wood has no influence whatsoever in an electric guitar sound, from all I’ve seen, it’s so minimal it can be mostly disregarded.
It’s one of those things musicians care about, that people listening to your music can’t even tell.
And honestly, most people that “compare” sounds do so knowing which instrument is which, that’s not a good way to compare things in an impartial way (knowing that a guitar is made from a wood you like can influence your brain to “listen” things that are not really there). They also obviate the pickups, and the setup, that can alter how a guitar may sound.
The pickups make a bigger difference, honestly, and I do care more about them, and to set them up correctly. Changing your pickups has a more noticeable difference in sound than anything wood can marginally offer.
Now, if we’re talking about acoustic guitars, that’s another thing completely.
But for electrics, I honestly couldn’t care less about wood. Just use something sustainable and I’ll take it.
If you want to have fun, look at the video I posted before in this thread, and see what wood sounds best to your ears (but obviously, without looking or cheating by knowing beforehand which wood is which, because musicians, as you know, hear with their eyes). Tim Sway has other videos with experiments on tonewood (spoiler alert: the best sounding wood is particle board!)
Or look for Jim Lill’s videos about where sound come from.