I would go metal over shingles, just based on performance, but I've been in the industry for 17 years so my opinion might be a little biased. I know metal has gone up almost double since the beginning of the year though, and still rising, not sure how shingle costs have done.
If your building structure is designed for a solid roof deck, you can still put metal on it, but the cost savings for the sheathing will obviously not be there. Of course, then you can use a 1" or 1.5" architectural type panel, which will be a little cheaper than a structural panel.
If you go for metal over purlins, you will need to make sure it's a structural double lock or snap lock usually 2" or 1.75" tall ribs. I put the 1.75" tall snap lock style on my new 30x30 garage with 4' on center purlins.