Suppose I have a topological category $\mathcal{C}$ of the following form: The object space consists of just two points $p_1, p_2$. The endomorphism space of $p_1$ contains just the identity. The endomorphism space $End(p_2)$ of $p_2$ is a group $G$ and we have a restriction map $End(p_2) \to hom(p_1, p_2)$ which is a homotopy equivalence.

Using just this information, can we say anything about $B\mathcal{C}$?

My guess would be that it is either homotopy equivalent to $BG$ or contractible or something weird like $BG \times G$. Note that even though $hom(p_1,p_2)$ is a $G$-space, $B\mathcal{C}$ does not seem to be the bar construction $B(G,G,\ast)$ or is it? For the latter, the space of objects should be the $G$-space in question and not just two points. Moreover, note that $p_1$ is not necessarily an initial object, since the space $hom(p_1,p_2)$ is generally non-trivial. There also is an obvious map $BG \to B\mathcal{C}$, but I am unable to show that it is a homotopy equivalence, so maybe it isn't.