I've had both with equal success.
If electric, do you have power near your work sites? Do you have heavy duty extension cords long enough?
Gas works great too. Maintenance is so little that it's not really a concern. Change the oil once a yr and run some stabilizer in the fall.
Seems to me that it comes down to price if you don't really have a lot of projects.
I have a Husqvarna gas model from Costco. But I use mine for dirt bikes, jeep and truck besides the house stuff.