Seriously, this sort of very-high-level partitioning seems pretty nonsensical to me. Given the huge morphological diversity of both these clades, proposing that pterosaurs preferred shorelines and birds preferred inland areas seems like suggesting a similar distinction between, say, mammals and "reptiles". In reality there will surely be many members of both groups living in each environment.