For the below scientific test the engineers changed the electric guitars body size by coupling it with a resonating body of wood. That essentially changes the whole transference of how the acoustic energy of the plucked strings moves throughout the electric guitar body. Then they measured the results which you can read from the below quotes.
https://gitec-forum-eng.de/wp-content/uploads/2019/08/poteg-7-8-1-legend-of-the-primary-tone.pdf
"Increasing the Strat body changes the airborne sound (the primary tone)
so dramatically that even the layperson will recognized the difference.
For the pickup
signal, even the expert cannot hear any difference."
"And so we arrive at our first conclusion: those who enthusiastically record the airborne sound
of a solid-body guitar, those who may even consider such activity as the main purpose of such
guitars – they certainly will be wise to pay attention to the material and build of the guitar
body.
We other guitarists who plug the guitar into an amp that we then turn up, we should
only think about the wood when it comes to ergonomics or cosmetics; the luthier will not
have used insulation board for the instrument i.e. the material will be ok. Back in the day, Leo
Fender cut up wood that was affordable and in reach to him – neither ash nor alder are
classical tone woods, and they don’t have to be, either. For the acoustic guitar, things are very
different: who would ever bolt a steel-sheet casing of the dimensions of an external 2.5” hard
drive to his or her pre-war Martin? Fender does that for their VG-Stratocaster, and nobody is
bothered; the guitar fully meets all expectations [G&B 7/07]. A hole for the battery
compartment is also milled into the body – great guitar, still! And why not, the thing will
work as long as neck and bridge can be solidly fixed to the body. With the Martin (to stay
with the example), that situation would be very different, but that guitar is something else
entirely, compared to Fender’s VG. "
----
IMHO it is safe to say that anyone who claims to hear a clear difference between "tone woods" of an electric guitar body is delusional and is just following the religion of "The Great Galactic Tonewood".