It is a draw. If the player to move has no legal move and isn’t in check, the game ends in a draw1.
Why people argue about it
It feels wrong to many players that trapping the king completely is worth less than checkmate. Threads asking to make stalemate a win run for pages on chess.com2 and lichess3. Stalemate has counted differently in the past4.
Your opponent has a lone king and you’ve boxed it in with no legal move. Is that a letdown, or a lesson? Agree before the clocks start whether stalemate carries any consequence beyond the draw. Stalemate picks the colors keeps the draw but lets the stalemated player choose their color next game. First stalemate is a do-over takes back your first stalemating move so you can look for the mate. We’d use the do-over with learners and play straight draws at competitive tables.
Play it a different way? Post it so others can vote on it.