The Baxter (2005)
The Baxter is a 2005 film written by, directed by and starring American comedian Michael Showalter. A “Baxter”, as defined by the film, is the nice, dull guy in a romantic comedy who is dumped at the end of the story for the protagonist.
More at Wikipedia.