There is no tang police. There is, however, hobbyist responsibility. The answer is somewhat simple. Purple tangs, for the most part, will be collected wild and therefore a larger size. A 40 breeder outside a isolation, medical, or QT tank is not an option as most of us know. So we can rule that one out.
On the other hand a yellow tang, obtained by legal means, will be captive bred/raised and therefore small. Usually about 1 1/2 inch to 2 inches which makes it the ideal candidate for this setting. Is it ideal? No, not at all because captive bred, raised fish, grow pretty quickly when feed properly.
So TL ; DR - neither. If one says dang the torpedo's and wants one anyway then the yellow would be the better choice. Again no po po but just remember one has to capture the fish to rehome and probably won't go willingly assuming it survives. So stress on the hobbyist, fish, and other animals which could cause other harm.