If you're playing a campaign and are going for realism etc then you wouldn't normally have a choice in what type of sub or it's armament you get (neither did most U-boat skippers).
I actually find that to be an interesting part of the game as a skipper, getting offered a new command (and learning what it can/cannot do) or to stay with my trusty boat (go with what you know).