Why does macOS estimate battery percentage higher?
My guess is that with AppleSmartBattery, you are calculating the percentage based on the batteries brand new, fully charged state. Whereas the OS is basing the percentage on what the battery is currently capable of at full charge, which will slowly degrade over time.