I stick with vintage and antique machines. They were engineered before planned obsolescence, and with only a few drops of oil, they will be sewing centuries from now. No plastic, electronics, or computers to fail. That said, I do have a few vintage electric machines, including my 1970s Kenmore, which still does everything I need her to do. I briefly had a new Brother machine, which lasted 2 years. It had lots of bells and whistles, but I don't think I used more than a couple of the fancy stitches. It's in a landfill.
That said, with proper care, newer machines may last, and if you want the bells and whistles, then enjoy it!