They had the 10th gen where AMD was clearly better performing and more efficient, but they competed. They had 11th gen which was a failure.
But until recent price cuts, Alder Lake wins on performance and price against a lot of AMD chips. Alder lake is doing that at a serious process disadvantage vs AMD - alder lake is not TSMC but intel 7 which is their 10nm enhanced finfet process. That intel is even close to competing with AMD when so far behind on process is pretty amazing, a testament to their chip design.
If they get their manufacturing and research back under control in the medium to long term they're golden. But even without that, I bet they're making a whole lot more money per chip fabbing it themselves than AMD is buying TSMC.