The Tradeoffs of SSMs and Transformers