Doesn't exchanging weapons in 5th happen during the action phase? That means that you couldn't attack then switch weapons to do an off-hand attack, as the attack completes the action. I don't think it makes sense to be able to use a melee set action and then just switch to ranged to use the hand crossbow bonus action attack, unless the melee is a one handed weapon and the hand crossbow is being dual wielded in the off-hand.
In BG3, exchanging a weapon from your inventory to equipped during a fight seems to take an Action (or Bonus Action, I don’t remember which). However, switching from your equipped melee weapon(s) to your equipped ranged weapon(s) does not take an Action or a Bonus Action. From a gameplay perspective, I like being able to switch my attack from round to round between equipped melee and equipped ranged to be able to change my attack target each round without using an Action or Bonus Action. However, I do not like the game mechanic of being able to switch these freely within the same round after I have already made one attack. I shouldn’t be able to shoot a ranged weapon with my Action and then Bonus Attack with my off hand melee (maybe except for Rogue). I also shouldn’t be able to make a two handed melee attack with my Action and then switch to my off hand Hand Croossbow for my Bonus Action.