Passengers do sometimes slip through at the gate, and when you have two airlines operating from the same terminal, flying to the same destination at similar times and both codesharing with each other (BA & Qantas to Singapore, BA & Finnair to Helsinki etc) meaning two flights with four flight numbers there is easily scope for confusion.