We purchased a home in May'20 and sold it in March'21 due to a job relocation. If we buy a new home this year will that eliminate/reduce any capital gains tax we owe?

We are trying to decide if we want to rent or purchase a new home and this may be a contributing factor.