Yes both are your primary home. If you sold your home and bought a new one in 2023, your interest deduction on schedule A is likely to be severely limited if you follow the average balance methods in Pub 936. If you plan to itemize deductions, a reasonable alternative method is to take the 12 month average of each mortgage and add them together.