Neither will be right. They'll just be measuring the system voltage and inferring how much capacity should be left in the battery from that
[1], probably with sufficient fudge factors so you don't readily notice them giving false readings as the motor draws current or when the battery temperature changes. It's like the battery indicator on a mobile phone in that respect.
Even with a proper power meter measuring and integrating the current it's not an exact science. That'll give you an admirably precise figure for how much energy you've actually used, but it still educated guesswork for what's actually left in the battery.
Like the petrol-o-meter in a car, it's mostly going to be about getting a sense of how big a pinch of salt to apply to the displayed reading. You may well find that a 'bar' on the control panel's display means something slightly different to an LED on the battery, simply because the designer has chosen different voltages for them to light up at - that doesn't mean either is wrong, though it may make one more useful than the other. Unlike the petrol-o-meter in the Fiat Of The Apocalypse, it should be reasonably consistent with itself, and the reading shouldn't change when you go round roundabouts
[1] Which is quite hard to do well with lithium-ion batteries, as they tend to give more or less the same voltage for ages, before tailing off at the end.