Using Heegaard Floer homology to obstruct surfaces and cobordism