They are both worth three, which is exactly the wrong way to think about them. Look at this position and count the material: three points against three points, and one side has a real piece.
7
2
g The pawns settle the argument, every time. Get the pawns right and the piece follows.
When the knight wins the argument
Locked pawn chains, like the one above. A knight jumps over the blockade and the bishop has to go round, and there is nowhere to go round to. Give the knight an outpost, a square in the enemy half that is protected by one of your pawns and can never be attacked by one of theirs, and you have a piece that will sit there for forty moves being worth more than a rook.
Knights are also the only piece that forks a king and a queen without being taken in return, so in sharp tactical positions with pieces close together they are worth watching.
When the bishop does
Open positions, and especially positions with passed pawns on both wings. A bishop crosses from a1 to h8 in one move. A knight takes six to make the same journey, and while it is travelling the pawn on the other side of the board queens.
A bishop also stops a passer from a safe distance and supports one from behind. That long range is the whole difference: in an endgame with pawns on both flanks, the bishop is usually a clean half point better, and with two bishops the gap grows. Two bishops can force mate against a lone king. Two knights, famously, cannot.
What to do when you cannot tell
Three habits that will serve you until you are strong enough to argue with them.
Put your pawns on the opposite colour to your bishop. That is the difference between a piece and a spectator, and it is the whole content of good and bad bishops.
Keep the pair unless you get something concrete for it. Larry Kaufman’s 1999 study of master games measured the bonus at around half a pawn, which is real money.
And when you take a knight with a bishop, or the other way round, ask what the pawn structure will look like after the trade rather than what the pieces are worth. That is the question, and the piece values cannot answer it for you.