Chosen Solution
I have an IPhone X, the screen is cracked bad, but the oled is in good condition. The phone is currently suffering from random things getting clicked on. I have the equipment to remove and replace just the top layer of glass which leads to my dumb question. Would replacing just the glass fix the touch issue?
If you do so have the experience and the proper equipment to do what you are asking then yes, replacing the glass should solve any “ghost touching” issues you have. Is it logical, no. Is it possible, yes. You are likely to break something while trying to remove the glass and you may not even be able to re-install the screen properly and have it work normally. However, if you use extreme precision you might be able to pull this one off.
If I remembered correctly, iPhone X actually have separate touch sensor and display layers. If you have the right tools and skills, you can peel them away, but you need to unsolder the touch sensor from the flex cable after that. It is very likely that the touch sensor got damaged when the screen cracked, necessitating replacement of both touch sensor and front glass.
I don’t have equipment, I have watched a lot of videos on YouTube. It seems a little hard, for the right installation it needs 3 machines, for remove display, for align and glue screen and touch, and bubble remover. Another diy technique or machine only demostrates a bad quality repair. (They are on refurbish industry, they are on YouTube as rewa) For me, is more affordable to buy a full display assembly because my repair shop is small and does not have iPhone x everyday.