Get your taxes done using TurboTax

This seems strange. It sounds like I could convert a taxable transaction into a nontaxable one simply by not selling shares from my portfolio and instead transferring them into my Roth IRA and selling them from there. Am I missing something?