As written, this second sentence is the opposite of accurate. With a bit of editing, though, it could have been a truthful statement:
In the 2021-22 season, the 49ers swept the Rams (who won the NFC West), but were swept by the Seahawks (who finished last in the division).