Anything well built and. crucially, well set up will work, preferably with hum buckers. Getting a "good" B is 99% about making sure the neck and bridge are set up optimally. String gauge is preference, scale length is a huge 2nd to setup.
I currently use a StingRay and Alpher bass in B. I left 5's behind back in 2019 in favour of drop tuned 4's, never looked back. Realised I never liked using a G string and felt much more comfortable on a narrower neck, so made total sense.