Mechanical used to be more accurate, but with the technology of the day, Electric are just as accurate. The mechanical take an actual sample of the fluid being measured and transfers it inside the car to the actual gauge, whereas electrical gauges do the sampling at the engine and transfers the readings electronically.
There used to be several posts about the pros and cons of each. Try a search, maybe there's something I missed.