Mechanical relay is still a pretty valid solution. Triacs have poor overvoltage handling, fail as short circuits, and have large leakage current (that doesn't matter here, but mentioning for completeness). A 20-cent (in volume) relay is a reliable solution which could last for years, while a 20-cent triac replacement would fail soon. Poor quality relay would be a problem of course, but so would a poor quality solid state replacement.
It is true that failure mode for a relay is contact welding (stuck on), but the same is true for semiconductor solutions and they are much more sensitive to overload current of even short overvoltage spikes on mains.
Though 3-second period is still too short for a relay, so take this as a generic comment. But you can really see relays used in industrial PID controllers which operate the relay more than once every minute.