db.collection.insert() provides no upsert possibility. Instead, mongo insert will inserts a new document into a collection. Upsert is only possible using db.collection.update() and db.collection.save().
If you carry a document to db.collection.insert() which is already in the collection and thus has an _id similar to an existing _id, it will throw a duplicate key exception.