Cant speak to the d4 but did some work in April on a boat with some fpt based 4 cylinder with Volvo legs. It was 32 feet and had high enough deck that the hatch was only a minimal 4 inch step to clear. Was a little tight getting in around the engine, but this would vary boat to boat. Was impressed with the low end grunt compared to similar boats with outboards. Fuel consumption was also pretty good,l for the range of sea conditions we saw.
Downside is two fold, of the remaining guys running outdrives in the commercial fleet they all factor in an outdrive major or replacement 1500-1700 hrs. The ob guys factor in major work around 3k. The initial cost of the diesel package in my area is 30-40% more.
The owner of the boat bought it second hand with very low hrs, and at his rate of use 1500 hrs would be 8 to 10 years. So in his instance it was a good fit and he is very happy with the setup.
I'm sure Volvo has cad files of the specs you could look at to see how well it would fit in your application. Proper setup engine hatch can make maintenance feasible. For major repair it is hard to beat the convince of outboard repairs. To the reliability it's probably a draw, there are several well known very long lived big outboards. At the same time emission restrictions and the pursuit of ultimate power/weight has begun to negate some of diesels longevity. Dollar for dollar its reliability is probably a draw.