There’s a lot of “it depends,” of course. Linear regulators are pretty simple, with few parts to fail, but they regulate by turning the excess energy into heat. Switchers are a lot more efficient, but more complex, so they have more parts and are more expensive.
I’ve done both, and the choice was based on unique factors for each project.