I have always connected my expensive and sensitive electrical equipment like desktop, LED TV, OLED TV to good quality UPS not only for clean and stable power but also for a little bit of backup.
And for ACs I have always got custom-built heavy-duty stabilizers.
A couple of years ago on Diwali day there was a power surge in our area and everything on and connected to the inverter survived. Unfortunately though I lost quite a lot LED lights not connected to the inverter. BTW our inverter is always on UPS mode.