Bilbao for me, much more interesting and fun city. San Sebastian is more beautiful, has the beach and apparently better food, but is smaller and more touristic.
Had great fun wandering around the old riverside in Bilbao, former industrial land now all regenerated in a really interesting way...