I’m pretty sure once you cede that you’re willing to use the energy required to move a container ships worth of weight from one end of the canal to the other, the cheaper option would be to pump water to refill the locks. Water is easier to transport than ships, and while I don’t think the efficiency of the locks helps much in this context, there might be some clever optimizations… especially if you’re willing to run a ton of high pressure pipe.