Oil company Natural Resources and medical-device maker Beta Bionics shrug off a down market to gain in their trading debuts.