I have a drawer full of bikini tops that never found a bottom to match, because I bought them separately, on holiday, in a panic, telling myself I'd sort it out later. I never did. So the first thing I'd say to you is buy the set, or at least buy both halves at once, even if you think you're a medium top and a small bottom, because that's exactly how the drawer of orphans starts.
In the shop, before anything else, sit down in it. Properly sit, the way you would on a sun lounger or a step by a pool. A lot of bottoms that look fine standing up turn into a thong the second you bend your knees. Check the gusset isn't see through when it's dry, not just when it's wet, because some fabrics go translucent the moment you stretch them. If there's wire, run your finger along the edge of the cup and make sure there's no sharp seam sitting right where your skin will be for six hours in the sun. Ties should feel like they've got some give, not the thin cord that cuts in after twenty minutes. And look at the lining, because some of the cheaper ones go a strange grey colour after a handful of wears, however careful you are.
Salt water, chlorine, and sun are not kind to any of it, but chlorine is the real enemy, it breaks down elastane faster than anything else, which is why the bikini that was snug in May is baggy by August if you've been in a chlorinated pool most weekends. Rinse it in cold water straight after every wear, never wring it, lay it flat rather than hanging it by the straps, which stretches them out of shape permanently. Treated like that, a decent bikini will hold its colour and its stretch for several summers. Treated like a flannel, you'll be buying a new one by July.
Where it falls short is anything that needs to survive actual movement, proper swimming, a long walk along a beach in wind, or a day where you're in and out of the water all afternoon rather than lying still. Triangle shapes with thin ties are lovely for lying down and hopeless for doing lengths. Bandeau styles look brilliant until the first big wave, and then you're hoiking it back up every two minutes. If you want to swim rather than pose, go underwired or something with a halter, not the prettiest option on the rail. Sizing runs small generally, so if you're between sizes, go up, and check the back band doesn't dig in when you breathe out. A bikini that pulls at the hips or leaves red marks across your ribs was never the right size, whatever the label says.
Underwired bikinis are worth a look too.