I don't think you're a bad person, but you could go to the funeral home and offer your condolences to the family without viewing the body. I did that at my parents' viewings. They had stipulated a viewing, however, I wanted to remember them alive, not laying in a casket. I was at the funeral home, but stayed in the foyer area and spoke with well-wishers but did not go into the room to view the body.
When I was 15 my grandfather passed away and we were taken to the funeral home to view him and that's how I always remember him
We even had to kiss him on the forehead. It was like kissing a stone! I promised myself, I'd never do that again for anyone......and I haven't. When my husband passed away, it was a closed casket and it will be that way for me as well. Remember your friend alive, smiling, and having fun. God Bless