Real world experience ( kind of) here.
I had a direct lightning hit on a tree 15 feet from my
head where I was sleeping in my bedroom.
Woke me right up. Blew a pile of
lumber forty plus feet from the tree. That
lumber used to be the tree trunk. It missed the neighbors cars. Phew.
The cordless
phone in the bedroom failed. The Ethernet switch downstairs failed. The Ethernet port on a pc motherboard on the opposite side of the house failed. We bought a new tv.
The failed motherboard was 40 feet or more from the strike, but the local switch (which survived, go figure) was tied to the downstairs switch by a cable that was about 60 feet long and run everywhere.
The Mac on the same switch survived.
So a switch might protect you. Or it might not. And that’s an indirect pulse from a strike.