X11's model for 'cut buffers', 'primary', and 'clipboard' is a historically bad design.
Like very easily in the top 10 worst designs in computer science history.
The fact that it managed to work at all is a testament to the millions of man-hours people were willing to pour into polishing a turd to make Linux Desktop a reality.
If we had the ability to go back in a time machine and do it again it is now painfully obvious that X11 should of been completely abandoned by the mid-1980s. This would of saved a huge amount of heartache.