If you have a SmartThings/Aeotec hub, then Z wave or Zigbee (or Thread) are normally a better choice from a network engineering perspective for light switches than WiFi. But it’s mostly a matter of preference. See the following FAQ. It’s old but still valid.
Any drawbacks to using WiFi light switches instead of zigbee/z-wave?
Matter adds a slight wrinkle to this, of course. Thread offers the same advantages versus Wi-Fi that zwave and Zigbee do, but some models also have native Matter support. But it’s a very new protocol and there aren’t very many Matter over Thread devices out yet. And I don’t know of any in toggle form. ![]()