This question was kindly answered by @DanielBlack (see question comments)
My 'error' was in copy/pasting the code directly from Bootstrap 4's navbar explanation then customizing it. The button code at the top of the copied code was NOT needed