Not really enough info to go on here, but I assume you have a threadless steerer already? I feel either wil be OK as long as you can get adjustment on the headset properly. The one with the wedge will probably be the easier- but make certain the shoulder will butt tightly with the top of the steerer tube, and stay there!
The other type will require a longer bolt for the top cap, to reach the star nut. I'm not sure I like this method. but what do I know? I don't care for spacing the stem up more than an inch anyway, and that's only if the steerer tube is long enough. I do see odd stem extensions every day. Whether I like 'em or not doesn't matter. Those bikes are generally not ridden hard enough for this to be a safety issue.
You may have other means to the same end. Different bars being one- shorter stem another- and saddle position being another. We don't know however why you want to raise the bars, or if the bike just doesn't fit, and so on.
I'm old, and have a neck injury, so require a bit of an upright ride. There's only so many ways I can get there if I still desire to do some spirited riding- which I do. The proper bike design is the best way to achieve my needs, and maybe yours.