If you are in the top marginal tax rate, that's the sweet spot to contribute to a RRSP.

Also, one shouldn't let the tax tail wag the dog. The best position to be in when retired is to 'suffer' 100% clawback of OAS.