Can only one person in an unmarried couple claim gain/loss from home sale?

We bought and sold a home all in 2022 with a slight loss. We are both on the deed but, for simplicity sake, would like to have the purchase/sale, and all the appropriate details, listed out on one of our returns. Is this acceptable?