The electronic compasses I've owned have been very accurate and reliable, with the exception of my first iPhone 4. The compass in that phone was off about 30 degrees consistently. I had it replaced due to a failing Home button, and the new one is very accurate and consistent.
It's awfully handy to have a compass in your GPS when you're standing still and orienting yourself. I would never have an electronic compass as my only compass though.