Samsung also has fab services to increase uptime, and it sells memory which is commodity.Intel is an integrated device manufacturer too... So is Samsung... So being an integrated device manufacturer alone is not the problem... What else is it? Is it that fabless companies just tend to generally be better at designing logic chips than IDMs, especially for chips not used in PCs, because they can focus their resources in just that one area...
Intel has a duopoly with AMD on a huge captive market for PC chips with x86 instruction set.
One thing to note about IDM is that it gets harder and harder to stay competitive as IDM at leading edge nodes because your capital equipment has to make its money back AND you have to keep buying to stay at the leading edge, which is a reason why Intel is struggling. Some of the most financially sound IDMs are analog fabs like Texas Instruments because they can use cheap refurbished or used equipment.
IDK much about design, my knowledge is limited.