I'll try to exemplify the costs on the basis of the Catalac 10M wich is the model that had factory fitted saildrives. Most had 2GM20 16hp engines, some the 3 cylinder 25hp. If I look at something new that's similar prices range from ~10 000 for 2 cylinder ~16hp to ~13 000 for the 3 cylinder 20+ hp. This price includes tax, the saildrive and the molded fiberglass mount pan for the engine+saildrive combo. Total cost would be 20-26k plus shipping, whatever you pay to have it installed and the associated bits and pieces like for example exhaust hose.
To drive both hydraulic legs one needs a new 4 cylinder 40+hp engine, that's 8-10k for a bobtail. Two drivelegs of the appropriate lenght to fit the props plus the hydraulic motors are another ~8k, plus pump, cooler, pipes, etc. End result for is in the same 20-26k range with increased installation efforts.
A new saildrive unit in this power range costs 3-4k and its doubtful you can have the hydraulic drive leg cost less. What you save from buying two individual smaller engines vs. a single bigger one you have to invest in the hydraulic driving side of the equation.
On the maintenance side I see this benefits:
1. a hydraulic leg is fixed solidly to the hull, so no diafragm seals to replace every 5-7 years.
2. You can get the leg in bronze or stainless if you so wish, no more special Al antifouling paint.
3. No integrated water intake to unblock.
Both still need anodes, leg oil changes and shaft seal checking.
Just for kicks I did find a manufacturer that offers a hydraulic drive leg with underwater motor, it also kicks up.
Drive Leg - Hercules Hydraulics https://herculeshydraulics.co.uk/drive-leg
Here's a more typical leg with the motor inside the hull.
Drive Legs - Ocean Marine Systems https://oms.ltd/product/drive-legs/