To paraphrase a past Pres, all depends upon what the definition of
equal is.

Both designs can be made with same reliability/durability. Typ diesel engine is designed for industrial like service while the typ gasoline engine is designed for automotive service. Do you think the typ diesel that weights about twice a typ gas engine has no affect on it's durability? Remember the few diesels that were offer in some auto and were based on gas engine designs/blocks and internal parts and weren't all that successful? How often do you see a "gas" engine who's internal parts are as massive as typ seen in a diesel of the same displacement?
Intended for the same service, either design can be made to yield similar reliability/durability.
But maybe your definition of equal is something different.