OEMs sometimes will do things like use different Wifi modules (among other things) on the same exact model and it can be somewhat luck of the draw as to what works well with Linux.
Distro choice also has a big impact. Like I tried Guix on my P14s and haven't been able to get Wifi working even with the latest non-libre kernel among other issues. Literally EVERYTHING works perfectly on Ubuntu 22.04 despite in theory non-libre Guix having a newer kernel so something must be going on there.