If you don't write your graduation thesis, you won't get a degree certificate, and you won't be expelled.
Graduation thesis is not only a prerequisite for graduation, but also a summary of what you have learned in recent years and a part of your study. If you don't write your graduation thesis, it means that your studies have not been completed. Getting the certificate of completion at most will have little effect on your future work.