The welded rims are a LOT stronger at the join. Pinned rims tend to get damaged and misaligned at the splice. If you're running tubeless, they can also spring a leak.
Often the damage will be a twist where the rim sidewalls no longer align, you cant true that out. Another way they get damaged is for the gap to open up over time and mileage.
I would not recommend pinned rims for technical mountain biking UNLESS you build your own wheels and are willing to replace them yourself. If you're paying for labor and planning on keeping the bike its a waste of time and money to custom build wheels with such low quality components, just go buy used wheels on pinkbike.
If you build the wheels yourself, normally pinned rims are never straight in the join area. Right from the factory they will usually have a warp / hop / low area in the joint.
They might stand up to endurance and lighter XC on smooth trails. For technical riding they will last about a year or less.
But yes, the actual extrusion can be otherwise equal. Many manufacturers used to make a cheap pinned rim and a more expensive welded rim from the same exact extrusion but then getting two models of rim. If you only care about weight, rim profile, looks, etc it saves money.