It's normal to meet setbacks in looking for new job ler. Very
often it really depends on the your presentation during the
interviews, and the first 6 seconds of impression formed around 80%
whether or not you'll be hired. The remaining 20% is on your
knowledge on the job and the company.
Sometimes, they purposely pose sarcastic remarks to test whether
you are able to take stress or not. If you could handle that well,
that'll impress them, of course, not telling you to suan them back
ler.
Every interview experience will not be wasted, because you have
inevitably learnt of different techniques pertaining to different
interviewer's personalities.