well it takes a big man to admit that he's wrong so I'll give you credit!
Yes there is heat produced in all of this so it's not a 100% efficient. Even if it was only 1% efficient though it would still put energy back into the battery when braking rather a servo using energy to brake.