dual touchscreen device with identical DEVICE NAME, VENDER ID, and PRODUCT ID maps touchscreens to the wrong screen on load

I’m on Wayland and EndeavorOS trying to set up a weird little laptop with two touchscreens and no internal keyboard to the point I can use it without a mouse or keyboard.

Problem is: the touchscreens have identical device name, vendor ID, and product ID, which is what ~/.config/kcminputrc uses to differentiate them.

Therefore, kcminputrc being loaded frequently causes one touchscreen to map to the other screen.

This is not as big of a problem when setting the settings GUI since it seems that the GUI is doing something a bit different than just setting the kcminputrc file and guessing the same way that reloading it does.

Is there some way to make it store stable hardware id paths or just not do any config file based handling of what touchscreen controls where on the screen and use raw libinput configuration from udev rules? Or maybe a way to do it using Kwin scripts every time the computer turns on?