Did you look up compatibility beforehand?
Ubuntu has their certified hardware list: https://ubuntu.com/certified/search?category=Laptop
The Arch wiki also maintains a list: https://wiki.archlinux.org/title/Category:Laptops