This seems insane. We're trying to teach Longshoreman's Tetris to machines, instead of using the system of standard containerization that almost completely replaced longshoremen, despite lower packing densities.
If Amazon had to load and unload entire warehouses as fast as possible, they wouldn't do this. The constraints they're operating under are completely different.