In fairness it might only be ~10% of the market, but for some brands it's still a much larger percentage of their sales as the people that do want diesel will go to the brands that sell them. 25% of VW & Skoda sales in Germany are diesel, 20% of Mercedes' German sales, 33% of Ford's, 38% of Citroen's (77% of DS's) and 60% of Fiat's in Germany. The trend here possibly being that people buying commercial vehicles still lean towards diesel.
Diesel still makes sense in commercial vehicles,Campers,Pickups, SUVs which often tow, and for field representatives who drive a lot.
The Range Rover ,Defender,GLS,GLS,X5,X7,G Class,Q7 are examples where the diesel is the best choice.
If you’re not driving 90% of the time short distances.