Deduplicate render_comparison method