Thapar University has recently started the CSE branch so not much cannot be said about it. Although its cutoffs are higher than COE, I don’t think a new branch can take over a well-established branch like COE this easily.
The Dera Bassi campus is located in a village and the proximity to the industry makes the living conditions pathetic for students. Moreover, the faculty is said to be average qualified and there aren't any practical lab sessions.
So, I will recommend you go for any lower branch at the main Thapar Campus than going for CSE in the Dera Bassi campus.