For those who have problem with touch not working, try plugging a mouse into the USB port and move the mouse around for a bit. The mouse cursor mor or may not show up. If it shows up, you can interact with the screen with it. If it doesn't show up, try tapping on the screen. I've noticed plugging in a mouse somehow allows touch to work again.
Phone is a G7 Plus XT1965-T, comes with Android 10 pre-installed. It installs TWRP just fine, but none of the versions had touch working prior to plugging in a mouse.
This was the last solution that I'd though would work, but it somehow does.